Skip to content

Commit e7a16e6

Browse files
author
Chris Townsend
committed
Explicitly disable XSAVES
MacOS 11 hypervisor framework support XSAVES Add the XSAVES control bit to the list of disabled controls. Signed-off-by: Chris Townsend <christopher.townsend@canonical.com>
1 parent b54460a commit e7a16e6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/include/xhyve/vmm/intel/vmx_controls.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
#define PROCBASED2_ENABLE_INVPCID (1u << 12)
7575
#define PROCBASED2_VMCS_SHADOW (1u << 14)
7676
#define PROCBASED2_RDSEED_EXITING (1u << 16)
77+
#define PROCBASED2_XSAVES (1u << 20)
7778

7879
/* VM Exit Controls */
7980
#define VM_EXIT_SAVE_DEBUG_CONTROLS (1u << 2)

src/lib/vmm/intel/vmx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292
PROCBASED2_RDRAND_EXITING | \
9393
PROCBASED2_ENABLE_INVPCID /* FIXME */ | \
9494
PROCBASED2_RDSEED_EXITING | \
95-
PROCBASED2_VMCS_SHADOW)
95+
PROCBASED2_VMCS_SHADOW | \
96+
PROCBASED2_XSAVES)
9697
#define PINBASED_CTLS_ONE_SETTING \
9798
(PINBASED_EXTINT_EXITING | \
9899
PINBASED_NMI_EXITING | \

0 commit comments

Comments
 (0)