KVM: x86: allow 256 logical x2APICs again
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 27 Nov 2014 19:03:13 +0000 (20:03 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Dec 2014 14:29:08 +0000 (15:29 +0100)
commit45c3094a6424614e6fea135e4e1afd8e0a65f468
treea238fbc1bd5e8e83b2cd68973a62b3c273713e26
parent25995e5b4aa308e5264cf7cf3e86871acf6a8b8c
KVM: x86: allow 256 logical x2APICs again

While fixing an x2apic bug,
 17d68b7 KVM: x86: fix guest-initiated crash with x2apic (CVE-2013-6376)
we've made only one cluster available.  This means that the amount of
logically addressible x2APICs was reduced to 16 and VCPUs kept
overwriting themselves in that region, so even the first cluster wasn't
set up correctly.

This patch extends x2APIC support back to the logical_map's limit, and
keeps the CVE fixed as messages for non-present APICs are dropped.

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