]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix mixed APIC mode broadcast
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 12 Feb 2015 18:41:32 +0000 (19:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2015 08:47:00 +0000 (10:47 +0200)
commit8301dfd981925bafb91738e2ba1c606cb814dc68
tree96f543186a9a943975ca97b7fca20237875f23a5
parent8fe972fd75d8ed84a4b97d2b6b0568e37c493574
KVM: x86: fix mixed APIC mode broadcast

Broadcast allowed only one global APIC mode, but mixed modes are
theoretically possible.  x2APIC IPI doesn't mean 0xff as broadcast,
the rest does.

x2APIC broadcasts are accepted by xAPIC.  If we take SDM to be logical,
even addreses beginning with 0xff should be accepted, but real hardware
disagrees.  This patch aims for simple code by considering most of real
behavior as undefined.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1423766494-26150-3-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c