KVM: x86: add a flag to disable KVM x2apic broadcast quirk
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 12 Jul 2016 20:09:28 +0000 (22:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 07:29:34 +0000 (09:29 +0200)
commitc519265f2aa348b2f1b9ecf8fbe20bb7c0fb102e
treed8e9820f18f59eb4b6400e768280a88c7e88f50a
parent3713131345fbea291cbd859d248e06ed77815962
KVM: x86: add a flag to disable KVM x2apic broadcast quirk

Add KVM_X2APIC_API_DISABLE_BROADCAST_QUIRK as a feature flag to
KVM_CAP_X2APIC_API.

The quirk made KVM interpret 0xff as a broadcast even in x2APIC mode.
The enableable capability is needed in order to support standard x2APIC and
remain backward compatible.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
[Expand kvm_apic_mda comment. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virtual/kvm/api.txt
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c
include/uapi/linux/kvm.h