[PATCH] powerpc/pseries: add definitions for new H_SIGNAL_SYS_RESET hcall
Michael Ellerman
mpe at ellerman.id.au
Tue Nov 8 19:40:47 AEDT 2016
Nicholas Piggin <npiggin at gmail.com> writes:
> This has not made its way to a PAPR release yet, but we have an hcall
> number assigned.
>
> H_SIGNAL_SYS_RESET = 0x380
>
> Syntax:
> hcall(uint64 H_SIGNAL_SYS_RESET, /* generate a system reset NMI on */
> /* the threads indicated by target */
> int64 target); /* thread target selection */
> /* -1 = target all online threads including the caller */
> /* -2 = target all online threads except for the caller */
> /* All other negative values: reserved */
> /* Positive values: The thread to be targeted, */
> /* obtained from the value of the "ibm,ppc-interrupt-server#s" */
> /* property of the CPU in the OF device tree */
>
> Semantics:
> - If the NMI handlers are not registered, terminate the partition.
Are we sure about that part ie. "terminate the partition".
AFAIK we don't use the FWNMI handlers on KVM at all, so it's just wrong
there.
It also means we can't safely use this on PowerVM until we've registered
those handlers, which currently happens at setup_arch() time, which is
fairly late in boot.
cheers
More information about the Linuxppc-dev
mailing list