]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfec14eb7f6e8e36634009afdc8e1431c7e775a14
tree24457a78e745152f4edda93d420518c52062ddce
parenta859a750641cfb0ba1ba17304f8cd2f999e08177
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