[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ
From: |
Alex Bennée |
Subject: |
[PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ |
Date: |
Wed, 1 Jul 2020 14:56:13 +0100 |
It's possible to trigger this function from qtest/monitor at which
point current_cpu won't point at the right place. Check it and
fall back to first_cpu if it's NULL.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Bug 1878645 <1878645@bugs.launchpad.net>
---
hw/isa/lpc_ich9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
index cd6e169d47a..791c878eb0b 100644
--- a/hw/isa/lpc_ich9.c
+++ b/hw/isa/lpc_ich9.c
@@ -439,7 +439,7 @@ static void ich9_apm_ctrl_changed(uint32_t val, void *arg)
cpu_interrupt(cs, CPU_INTERRUPT_SMI);
}
} else {
- cpu_interrupt(current_cpu, CPU_INTERRUPT_SMI);
+ cpu_interrupt(current_cpu ? current_cpu : first_cpu,
CPU_INTERRUPT_SMI);
}
}
}
--
2.20.1
- [PATCH v4 00/40] testing/next (vm, gitlab, fixes), Alex Bennée, 2020/07/01
- [PATCH v4 03/40] crypto/linux_keyring: fix 'secret_keyring' configure test, Alex Bennée, 2020/07/01
- [PATCH v4 02/40] iotests: Fix 051 output after qdev_init_nofail() removal, Alex Bennée, 2020/07/01
- [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ,
Alex Bennée <=
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Philippe Mathieu-Daudé, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Alex Bennée, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Philippe Mathieu-Daudé, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Alex Bennée, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Philippe Mathieu-Daudé, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Philippe Mathieu-Daudé, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Philippe Mathieu-Daudé, 2020/07/01
- Re: [PATCH v4 01/40] hw/isa: check for current_cpu before generating IRQ, Philippe Mathieu-Daudé, 2020/07/01
[PATCH v4 04/40] util/coroutine: Cleanup start_switch_fiber_ for TSAN., Alex Bennée, 2020/07/01
[PATCH v4 12/40] python/qemu: Add ConsoleSocket for optional use in QEMUMachine, Alex Bennée, 2020/07/01