]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9864bcf5b4e6a23f64dbfc31ba247531849ef4b
tree5ac2010671ab813257bc985d694adafde9844946
parent3ee9bc60672abbb1150708a2a053c9482404b177
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