]> 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)
commit3fe08d20648fb3079c0fab92d6b62558c234bef2
treedae15d644a3c00e07b6b84f7ccff2c977dfb9822
parent9e9082f5bed6925b6f5c03a8fd806a4560f68d58
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