Skip to content

Commit

Permalink
Merge pull request #201 from shanesmith/bigsur-vmx-flags
Browse files Browse the repository at this point in the history
Disable VMX flags causing issues on Big Sur
  • Loading branch information
jeremyhu authored Sep 22, 2021
2 parents 78cb85d + 6e7a52f commit df93818
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/xhyve/vmm/intel/vmx_controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#define PROCBASED2_ENABLE_INVPCID (1u << 12)
#define PROCBASED2_VMCS_SHADOW (1u << 14)
#define PROCBASED2_RDSEED_EXITING (1u << 16)
#define PROCBASED2_ENABLE_XSAVES_XRSTORS (1u << 20)

/* VM Exit Controls */
#define VM_EXIT_SAVE_DEBUG_CONTROLS (1u << 2)
Expand Down
6 changes: 5 additions & 1 deletion src/vmm/intel/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
PROCBASED2_RDRAND_EXITING | \
PROCBASED2_ENABLE_INVPCID /* FIXME */ | \
PROCBASED2_RDSEED_EXITING | \
PROCBASED2_ENABLE_XSAVES_XRSTORS | \
PROCBASED2_VMCS_SHADOW )
#define PINBASED_CTLS_ONE_SETTING \
(PINBASED_EXTINT_EXITING | \
Expand All @@ -102,12 +103,15 @@
#define VM_ENTRY_CTLS_ZERO_SETTING \
(VM_ENTRY_INTO_SMM | \
VM_ENTRY_DEACTIVATE_DUAL_MONITOR | \
VM_ENTRY_LOAD_PERF_GLOBAL_CTRL | \
VM_ENTRY_GUEST_LMA)
#define VM_EXIT_CTLS_ONE_SETTING \
(VM_EXIT_HOST_LMA | \
VM_EXIT_LOAD_EFER)
#define VM_EXIT_CTLS_ZERO_SETTING \
(VM_EXIT_SAVE_PREEMPTION_TIMER)
(VM_EXIT_SAVE_PREEMPTION_TIMER | \
VM_EXIT_SAVE_EFER | \
VM_EXIT_LOAD_PERF_GLOBAL_CTRL)
#define NMI_BLOCKING \
(VMCS_INTERRUPTIBILITY_NMI_BLOCKING | \
VMCS_INTERRUPTIBILITY_MOVSS_BLOCKING)
Expand Down

0 comments on commit df93818

Please sign in to comment.