Allow guests to do INVLPG.
authorRonald G. Minnich <rminnich@gmail.com>
Tue, 7 Jul 2015 23:38:29 +0000 (16:38 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Nov 2015 23:24:25 +0000 (18:24 -0500)
We require EPTs so that should be ok.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/vmm/intel/vmx.c

index 71cf929..e8ace3d 100644 (file)
@@ -491,7 +491,6 @@ static const struct vmxec cbec = {
        .truemsr = MSR_IA32_VMX_TRUE_PROCBASED_CTLS,
 
        .set_to_1 = (CPU_BASED_HLT_EXITING |
-                    CPU_BASED_INVLPG_EXITING |
                     CPU_BASED_MWAIT_EXITING |
                     CPU_BASED_RDPMC_EXITING |
                     CPU_BASED_CR8_LOAD_EXITING |
@@ -503,6 +502,7 @@ static const struct vmxec cbec = {
                     CPU_BASED_ACTIVATE_SECONDARY_CONTROLS),
 
        .set_to_0 = (CPU_BASED_VIRTUAL_INTR_PENDING |
+                    CPU_BASED_INVLPG_EXITING |
                     CPU_BASED_USE_TSC_OFFSETING |
                     CPU_BASED_RDTSC_EXITING |
                     CPU_BASED_CR3_LOAD_EXITING |