KVM: x86: use physical LAPIC array for logical x2APIC
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 12 Jul 2016 20:09:19 +0000 (22:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 07:03:52 +0000 (09:03 +0200)
commite45115b62f9abb143a03036dbde05faf5864aa01
treeebb3802f82ded6a134190ec496a3202bd315a215
parent64aa47bfc45323040d5db8f30cbd6851f2606c7d
KVM: x86: use physical LAPIC array for logical x2APIC

Logical x2APIC IDs map injectively to physical x2APIC IDs, so we can
reuse the physical array for them.  This allows us to save space by
sizing the logical maps according to the needs of xAPIC.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c