Skip to content

Commit

Permalink
Merge pull request #174 from dx9/disable-vmcs-shadowing
Browse files Browse the repository at this point in the history
Explicitly disable VMCS shadowing
  • Loading branch information
jasnee authored Oct 1, 2019
2 parents ce875de + 0c3c50a commit 1f46a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -72,6 +72,7 @@
#define PROCBASED2_PAUSE_LOOP_EXITING (1u << 10)
#define PROCBASED2_RDRAND_EXITING (1u << 11)
#define PROCBASED2_ENABLE_INVPCID (1u << 12)
#define PROCBASED2_VMCS_SHADOW (1u << 14)
#define PROCBASED2_RDSEED_EXITING (1u << 16)

/* VM Exit Controls */
Expand Down
3 changes: 2 additions & 1 deletion src/vmm/intel/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
PROCBASED2_PAUSE_LOOP_EXITING /* FIXME */ | \
PROCBASED2_RDRAND_EXITING | \
PROCBASED2_ENABLE_INVPCID /* FIXME */ | \
PROCBASED2_RDSEED_EXITING)
PROCBASED2_RDSEED_EXITING | \
PROCBASED2_VMCS_SHADOW )
#define PINBASED_CTLS_ONE_SETTING \
(PINBASED_EXTINT_EXITING | \
PINBASED_NMI_EXITING | \
Expand Down

0 comments on commit 1f46a3d

Please sign in to comment.