KVM: VMX: Advertize RDTSC exiting to nested guests
authorAvi Kivity <avi@redhat.com>
Mon, 13 Aug 2012 12:38:22 +0000 (15:38 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 13 Aug 2012 22:08:28 +0000 (19:08 -0300)
All processors that support VMX have that feature, and guests (Xen) depend on
it.  As we already implement it, advertize it to the guest.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c

index d0f4bec9fc62d50fdf014831505c48e200617fe6..13e0296cea46b8cb1dd30e318ac91d404b637ecf 100644 (file)
@@ -1990,7 +1990,7 @@ static __init void nested_vmx_setup_ctls_msrs(void)
 #endif
                CPU_BASED_MOV_DR_EXITING | CPU_BASED_UNCOND_IO_EXITING |
                CPU_BASED_USE_IO_BITMAPS | CPU_BASED_MONITOR_EXITING |
-               CPU_BASED_RDPMC_EXITING |
+               CPU_BASED_RDPMC_EXITING | CPU_BASED_RDTSC_EXITING |
                CPU_BASED_ACTIVATE_SECONDARY_CONTROLS;
        /*
         * We can allow some features even when not supported by the