]> 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)
commite35dbbf83f1004cce70f2cbca1ef8f4b60e8d1f9
tree96f543186a9a943975ca97b7fca20237875f23a5
parent7a4f10873a0769a3023fb1b3c95469cb05a65c3c
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