[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 08/22] ppc/xics: Fix stale irq->status bits after get
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 08/22] ppc/xics: Fix stale irq->status bits after get |
Date: |
Wed, 10 May 2017 17:01:01 +1000 |
From: Sam Bobroff <address@hidden>
ics_get_kvm_state() "or"s set bits into irq->status but does not mask
out clear bits.
Correct this by initializing the IRQ status to zero before adding bits
to it.
Signed-off-by: Sam Bobroff <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/intc/xics_kvm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c
index 42e0e0e..03c1fc7 100644
--- a/hw/intc/xics_kvm.c
+++ b/hw/intc/xics_kvm.c
@@ -213,6 +213,7 @@ static void ics_get_kvm_state(ICSState *ics)
irq->priority = irq->saved_priority;
}
+ irq->status = 0;
if (state & KVM_XICS_PENDING) {
if (state & KVM_XICS_LEVEL_SENSITIVE) {
irq->status |= XICS_STATUS_ASSERTED;
--
2.9.3
- [Qemu-ppc] [PULL 00/22] ppc-for-2.10 queue 20170510, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 05/22] cpus: Fix CPU unplug for MTTCG, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 04/22] target/ppc: Generate fence operations, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 08/22] ppc/xics: Fix stale irq->status bits after get,
David Gibson <=
- [Qemu-ppc] [PULL 03/22] cputlb: handle first atomic write to the page, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 18/22] target/ppc: Enable RADIX mmu mode for pseries TCG guest, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 07/22] target/ppc: do not reset reserve_addr in exec_enter, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 06/22] tcg: enable MTTCG by default for PPC64 on x86, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 16/22] target/ppc: Change tlbie invalid fields for POWER9 support, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 13/22] ppc: add qemu_vga.ndrv ROM to fw_cfg interface for NewWorld Macs, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 15/22] target/ppc: Update tlbie to check privilege level based on GTSE, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 11/22] Add QemuMacDrivers qemu_vga.ndrv revision d4e7d7a built as submodule, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 19/22] ppc: xics: fix compilation with CentOS 6, David Gibson, 2017/05/10
- [Qemu-ppc] [PULL 01/22] ppc/pnv: restrict BMC object to the BMC simulator, David Gibson, 2017/05/10