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)
commit9ea369b032d87b88f1a47187b51ad4321dea5766
tree96f543186a9a943975ca97b7fca20237875f23a5
parent03d2249ea60818e97475ac529aa183cf130935bb
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