From: Sergio Lopez <s...@redhat.com> In apic_accept_pic_intr(), reject PIC interruptions if a i8259 PIC has not been instantiated (isa_pic == NULL).
Suggested-by: Paolo Bonzini <pbonz...@redhat.com> Signed-off-by: Sergio Lopez <s...@redhat.com> Reviewed-by: Michael S. Tsirkin <m...@redhat.com> --- hw/intc/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/apic.c b/hw/intc/apic.c index bce8991..2a74f7b 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@ -610,7 +610,7 @@ int apic_accept_pic_intr(DeviceState *dev) if ((s->apicbase & MSR_IA32_APICBASE_ENABLE) == 0 || (lvt0 & APIC_LVT_MASKED) == 0) - return 1; + return isa_pic != NULL; return 0; } -- 1.8.3.1