]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94a19b7cfb5bbdcd8e146f1ac14e34d4bcfee9ac
treea238fbc1bd5e8e83b2cd68973a62b3c273713e26
parent2f9a6008f29fa607a495bd9b297ff2b2041a14b4
KVM: x86: allow 256 logical x2APICs again

While fixing an x2apic bug,
 917c70a 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