]> git.baikalelectronics.ru Git - kernel.git/commit
nVMX x86: Check VPID value on vmentry of L2 guests
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Tue, 4 Sep 2018 18:42:58 +0000 (14:42 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Sep 2018 22:51:45 +0000 (00:51 +0200)
commitb7f2393c15897d29775c2feebb322727db4e9bd7
tree0f6078a01354c450227685a66475904d76918e00
parent9969469d957aca36c7b2283a82fa31d7f85201e3
nVMX x86: Check VPID value 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 'enable VPID' VM-execution control is 1, the value of the
    of the VPID VM-execution control field must not be 0000H.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c