Rename the XCR0_* #defines to XFEATURE_* and add the new supervisor-state
authorguenther <guenther@openbsd.org>
Sat, 22 Apr 2023 18:27:28 +0000 (18:27 +0000)
committerguenther <guenther@openbsd.org>
Sat, 22 Apr 2023 18:27:28 +0000 (18:27 +0000)
commitd8562aa01a5b36eb1d4c58e5253ff65b579a2d21
treefb80919cb613c04c953f48fc2efaab5847776fa1
parent9e80d48a44ee445c58250c852245a4cd3e76c8aa
Rename the XCR0_* #defines to XFEATURE_* and add the new supervisor-state
features: while all are appropriate for xsaves/xrstors, the
supervisor-state features aren't for xcr0 but rather for the new XSS_MSR,
making the current names kinda confusing.

Add #defines for masking bits for xcr0 vs XSS.

Add and report the new XSAVE_XFD xsave subfeature bit.

ok mlarkin@
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/identcpu.c
sys/arch/amd64/amd64/mds.S
sys/arch/amd64/amd64/vmm.c
sys/arch/amd64/include/specialreg.h