]> 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)
commita3e2316151f1172ddb145702771ccab57fd20de6
treeebb3802f82ded6a134190ec496a3202bd315a215
parent4a5f5508c4f09ecaa4e7cd71bc0746b4c286d502
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