]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Add a vmentry check for HOST_SYSENTER_ESP and HOST_SYSENTER_EIP fields
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Thu, 7 Feb 2019 19:05:30 +0000 (14:05 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Mar 2019 16:27:18 +0000 (17:27 +0100)
commit14105b6bbe70bb86f6d41e0e8f41becd0317d453
tree8d1f2626bf6030735f5f29cdab4d09f3fb098f12
parent7fde83df2fbafb55abb67dafe8f4e17217b31d54
kvm: nVMX: Add a vmentry check for HOST_SYSENTER_ESP and HOST_SYSENTER_EIP fields

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

    On processors that support Intel 64 architecture, the IA32_SYSENTER_ESP
    field and the IA32_SYSENTER_EIP field must each contain a canonical
    address.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c