]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63460662157a9289feca917736f4250d880784d5
treedae15d644a3c00e07b6b84f7ccff2c977dfb9822
parent49169d1794a0ce155fcd829e729cb45cf82af02c
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