kvm: nVMX: Eliminate APIC access page sharing between L1 and L2
authorJim Mattson <jmattson@google.com>
Wed, 9 May 2018 21:02:03 +0000 (17:02 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 May 2018 16:24:24 +0000 (18:24 +0200)
commitab5df31cee7f8f17adb59717cf569d315ec02644
treee2ac675051975c50ca02ccca230853dd83e41a76
parent8d860bbeedef97fe981d28fa7b71d77f3b29563f
kvm: nVMX: Eliminate APIC access page sharing between L1 and L2

It is only possible to share the APIC access page between L1 and L2 if
they also share the virtual-APIC page.  If L2 has its own virtual-APIC
page, then MMIO accesses to L1's TPR from L2 will access L2's TPR
instead.  Moreover, L1's local APIC has to be in xAPIC mode, which is
another condition that hasn't been checked.

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