[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 11/13] ppc/spapr: Implement FWNMI System Reset delivery
From: |
David Gibson |
Subject: |
Re: [RFC PATCH 11/13] ppc/spapr: Implement FWNMI System Reset delivery |
Date: |
Wed, 4 Mar 2020 17:08:32 +1100 |
On Wed, Mar 04, 2020 at 03:28:48PM +1000, Nicholas Piggin wrote:
> PAPR requires that if "ibm,nmi-interlock" succeeds, then the hypervisor
I'm guessing you mean "ibm,nmi-register" here?
> 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)
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [RFC PATCH 09/13] ppc/spapr: Don't kill the guest if a recovered FWNMI machine check delivery fails, (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, 2020/03/04
- Re: [RFC PATCH 11/13] ppc/spapr: Implement FWNMI System Reset delivery,
David Gibson <=
- [RFC PATCH 13/13] ppc/spapr: KVM should not enable FWNMI until the guest requests it, Nicholas Piggin, 2020/03/04