KVM: x86: avoid logical_map when it is invalid
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 12 Feb 2015 18:41:33 +0000 (19:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2015 08:47:01 +0000 (10:47 +0200)
commit3548a259f6990d8cb4f520e6c14f4b45b1f2fd38
tree05ccddb27cac89d62a30168d20b5a15a4f8e4f8f
parent9ea369b032d87b88f1a47187b51ad4321dea5766
KVM: x86: avoid logical_map when it is invalid

We want to support mixed modes and the easiest solution is to avoid
optimizing those weird and unlikely scenarios.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1423766494-26150-4-git-send-email-rkrcmar@redhat.com>
[Add comment above KVM_APIC_MODE_* defines. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c