kvm: nVMX: Validate the virtual-APIC address on nested VM-entry
authorJim Mattson <jmattson@google.com>
Thu, 24 Aug 2017 20:24:47 +0000 (13:24 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Aug 2017 10:34:16 +0000 (12:34 +0200)
commit712b12d72451411c40e39d25e2140fb8c7fd0e49
tree5ac2010671ab813257bc985d694adafde9844946
parentbfcf83b1444d90f6e680a0dde0916f3b289b5066
kvm: nVMX: Validate the virtual-APIC address on nested VM-entry

According to the SDM, if the "use TPR shadow" VM-execution control is
1, bits 11:0 of the virtual-APIC address must be 0 and the address
should set any bits beyond the processor's physical-address width.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c