nVMX x86: Check VMX-preemption timer controls on vmentry of L2 guests
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Thu, 1 Nov 2018 05:21:58 +0000 (01:21 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 11:55:46 +0000 (12:55 +0100)
commit14aa61d0a9eb3ddad06c3a0033f88b5fa7f05613
tree24457a78e745152f4edda93d420518c52062ddce
parent00df9181de2a116af2bc81cce7e3dda4e0431a2d
nVMX x86: Check VMX-preemption timer controls on vmentry of L2 guests

According to section "Checks on VMX Controls" in Intel SDM vol 3C, the
following check needs to be enforced on vmentry of L2 guests:

    If the "activate VMX-preemption timer" VM-execution control is 0, the
    the "save VMX-preemption timer value" VM-exit control must also be 0.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c