]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc89ad5a73db752b095c78f5611a1c98a0ace964f
treeebb3802f82ded6a134190ec496a3202bd315a215
parentb57847b75bf6bd8a8a98fbf1cfd37c068d385dbc
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