[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 11/13] ppc/spapr: Implement FWNMI System Reset delivery
From: |
Nicholas Piggin |
Subject: |
[RFC PATCH 11/13] ppc/spapr: Implement FWNMI System Reset delivery |
Date: |
Wed, 4 Mar 2020 15:28:48 +1000 |
PAPR requires that if "ibm,nmi-interlock" succeeds, then the hypervisor
delivers all system reset and machine check exceptions to the registered
addresses.
System Resets are delivered with registers set to the architected state,
and with no interlock.
Signed-off-by: Nicholas Piggin <address@hidden>
---
hw/ppc/spapr.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 4f46ea67ca..5bee47b034 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -3391,8 +3391,11 @@ static void spapr_machine_finalizefn(Object *obj)
void spapr_do_system_reset_on_cpu(CPUState *cs, run_on_cpu_data arg)
{
+ SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
+
cpu_synchronize_state(cs);
- ppc_cpu_do_system_reset(cs, -1);
+ /* If FWNMI is inactive, addr will be -1, which will deliver to 0x100 */
+ ppc_cpu_do_system_reset(cs, spapr->fwnmi_system_reset_addr);
}
static void spapr_nmi(NMIState *n, int cpu_index, Error **errp)
--
2.23.0
- Re: [RFC PATCH 06/13] ppc/spapr: Fix FWNMI machine check failure handling, (continued)
- [RFC PATCH 09/13] ppc/spapr: Don't kill the guest if a recovered FWNMI machine check delivery fails, Nicholas Piggin, 2020/03/04
- [RFC PATCH 07/13] ppc/spapr: Improve FWNMI machine check delivery corner case comments, Nicholas Piggin, 2020/03/04
- [RFC PATCH 08/13] ppc/spapr: Add FWNMI machine check delivery warnings, Nicholas Piggin, 2020/03/04
- [RFC PATCH 10/13] target/ppc: allow ppc_cpu_do_system_reset to take an alternate vector, Nicholas Piggin, 2020/03/04
- [RFC PATCH 12/13] ppc/spapr: Allow FWNMI on TCG, Nicholas Piggin, 2020/03/04
- [RFC PATCH 11/13] ppc/spapr: Implement FWNMI System Reset delivery,
Nicholas Piggin <=
- [RFC PATCH 13/13] ppc/spapr: KVM should not enable FWNMI until the guest requests it, Nicholas Piggin, 2020/03/04