[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 08/12] hw/intc/apic: reject pic ints if isa_pic == NULL
From: |
Sergio Lopez |
Subject: |
[PATCH v7 08/12] hw/intc/apic: reject pic ints if isa_pic == NULL |
Date: |
Tue, 8 Oct 2019 15:55:34 +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 v7 00/12] Introduce the microvm machine type, Sergio Lopez, 2019/10/08
- [PATCH v7 01/12] hw/virtio: Factorize virtio-mmio headers, Sergio Lopez, 2019/10/08
- [PATCH v7 02/12] hw/i386/pc: rename functions shared with non-PC machines, Sergio Lopez, 2019/10/08
- [PATCH v7 03/12] hw/i386/pc: fix code style issues on functions that will be moved out, Sergio Lopez, 2019/10/08
- [PATCH v7 04/12] hw/i386/pc: move shared x86 functions to x86.c and export them, Sergio Lopez, 2019/10/08
- [PATCH v7 05/12] hw/i386: split PCMachineState deriving X86MachineState from it, Sergio Lopez, 2019/10/08
- [PATCH v7 06/12] hw/i386: make x86.c independent from PCMachineState, Sergio Lopez, 2019/10/08
- [PATCH v7 07/12] fw_cfg: add "modify" functions for all types, Sergio Lopez, 2019/10/08
- [PATCH v7 08/12] hw/intc/apic: reject pic ints if isa_pic == NULL,
Sergio Lopez <=
- [PATCH v7 10/12] docs/microvm.rst: document the new microvm machine type, Sergio Lopez, 2019/10/08
- [PATCH v7 09/12] roms: add microvm-bios (qboot) as binary and git submodule, Sergio Lopez, 2019/10/08
- [PATCH v7 11/12] hw/i386: Introduce the microvm machine type, Sergio Lopez, 2019/10/08
- [PATCH v7 12/12] MAINTAINERS: add microvm related files, Sergio Lopez, 2019/10/08
- Re: [PATCH v7 00/12] Introduce the microvm machine type, Michael S. Tsirkin, 2019/10/09