kvm: vmx: Basic APIC virtualization controls have three settings
authorJim Mattson <jmattson@google.com>
Wed, 9 May 2018 20:56:05 +0000 (16:56 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 May 2018 16:24:24 +0000 (18:24 +0200)
commit8d860bbeedef97fe981d28fa7b71d77f3b29563f
treedae15d644a3c00e07b6b84f7ccff2c977dfb9822
parent588716494258899389206fa50426e78cc9df89b9
kvm: vmx: Basic APIC virtualization controls have three settings

Previously, we toggled between SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE
and SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES, depending on whether or
not the EXTD bit was set in MSR_IA32_APICBASE. However, if the local
APIC is disabled, we should not set either of these APIC
virtualization control bits.

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/include/asm/kvm_host.h
arch/x86/kvm/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c