[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 07/10] hw/intc/apic: reject pic ints if isa_pic == NULL
From: |
Sergio Lopez |
Subject: |
[PATCH v6 07/10] hw/intc/apic: reject pic ints if isa_pic == NULL |
Date: |
Fri, 4 Oct 2019 11:37:49 +0200 |
In apic_accept_pic_intr(), reject PIC interruptions if a i8259 PIC has
not been instantiated (isa_pic == NULL).
Suggested-by: Paolo Bonzini <address@hidden>
Signed-off-by: Sergio Lopez <address@hidden>
---
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 bce89911dc..2a74f7b4bf 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;
}
--
2.21.0
- [PATCH v6 03/10] hw/i386/pc: move shared x86 functions to x86.c and export them, (continued)
- [PATCH v6 03/10] hw/i386/pc: move shared x86 functions to x86.c and export them, Sergio Lopez, 2019/10/04
- [PATCH v6 04/10] hw/i386: split PCMachineState deriving X86MachineState from it, Sergio Lopez, 2019/10/04
- [PATCH v6 05/10] hw/i386: make x86.c independent from PCMachineState, Sergio Lopez, 2019/10/04
- [PATCH v6 06/10] fw_cfg: add "modify" functions for all types, Sergio Lopez, 2019/10/04
- [PATCH v6 07/10] hw/intc/apic: reject pic ints if isa_pic == NULL,
Sergio Lopez <=
- [PATCH v6 08/10] roms: add microvm-bios (qboot) as binary and git submodule, Sergio Lopez, 2019/10/04
- [PATCH v6 09/10] docs/microvm.rst: document the new microvm machine type, Sergio Lopez, 2019/10/04
- [PATCH v6 10/10] hw/i386: Introduce the microvm machine type, Sergio Lopez, 2019/10/04
- Re: [PATCH v6 00/10] Introduce the microvm machine type, Michael S. Tsirkin, 2019/10/04
- Re: [PATCH v6 00/10] Introduce the microvm machine type, no-reply, 2019/10/04
- Re: [PATCH v6 00/10] Introduce the microvm machine type, no-reply, 2019/10/04
- Re: [PATCH v6 00/10] Introduce the microvm machine type, Michael S. Tsirkin, 2019/10/05