summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2014-11-27 20:03:11 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-12-04 15:29:06 +0100
commit085563fb043c29cc09e5ec5e21a7f6bb519d91e2 (patch)
tree09e3b181b5d12727cc72e9a211ed45900eddd1a7
parent698f9755d9c061865aecc52f590270ba5bbc1442 (diff)
downloadop-kernel-dev-085563fb043c29cc09e5ec5e21a7f6bb519d91e2.zip
op-kernel-dev-085563fb043c29cc09e5ec5e21a7f6bb519d91e2.tar.gz
KVM: x86: deliver phys lowest-prio
Physical mode can't address more than one APIC, but lowest-prio is allowed, so we just reuse our paths. SDM 10.6.2.1 Physical Destination: Also, for any non-broadcast IPI or I/O subsystem initiated interrupt with lowest priority delivery mode, software must ensure that APICs defined in the interrupt address are present and enabled to receive interrupts. We could warn on top of that. Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/lapic.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index f6184f1..541e178 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -693,8 +693,6 @@ bool kvm_irq_delivery_to_apic_fast(struct kvm *kvm, struct kvm_lapic *src,
ret = true;
if (irq->dest_mode == 0) { /* physical mode */
- if (irq->delivery_mode == APIC_DM_LOWEST)
- goto out;
dst = &map->phys_map[irq->dest_id & 0xff];
} else {
u32 mda = irq->dest_id << (32 - map->ldr_bits);
OpenPOWER on IntegriCloud