OSDN Git Service

KVM: nVMX: Enforce NMI controls on vmentry of L2 guests
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Wed, 21 Feb 2018 02:24:39 +0000 (21:24 -0500)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 8 Mar 2018 15:54:03 +0000 (16:54 +0100)
commit0c7f650e106c3f045d9f8d1c1c7eb6f5596508b8
treef86e1120e27b5f05df02045b3887377b8d634321
parent1389309c811b0c954bf3b591b761d79b1700283d
KVM: nVMX: Enforce NMI controls on vmentry of L2 guests

According to Intel SDM 26.2.1.1, the following rules should be enforced
on vmentry:

 *  If the "NMI exiting" VM-execution control is 0, "Virtual NMIs"
    VM-execution control must be 0.
 *  If the “virtual NMIs” VM-execution control is 0, the “NMI-window
    exiting” VM-execution control must be 0.

This patch enforces these rules when entering an L2 guest.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c