KVM: nVMX: allow tests to use bad virtual-APIC page address
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Apr 2019 13:16:17 +0000 (15:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Apr 2019 08:59:07 +0000 (10:59 +0200)
commit690908104e39d37947f89d76388c876ce4ec5fda
treec36cb58746423288987bdc08715c2c4fe4314ee0
parentcfd32acf7875d9dd83f82e1940098e88abeea439
KVM: nVMX: allow tests to use bad virtual-APIC page address

As mentioned in the comment, there are some special cases where we can simply
clear the TPR shadow bit from the CPU-based execution controls in the vmcs02.
Handle them so that we can remove some XFAILs from vmx.flat.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h