From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxDLm-0007KB-WB for qemu-devel@nongnu.org; Thu, 20 Oct 2016 09:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxDLi-0005np-Tt for qemu-devel@nongnu.org; Thu, 20 Oct 2016 09:25:38 -0400 Date: Fri, 21 Oct 2016 00:25:17 +1100 From: Nicholas Piggin Message-ID: <20161021002517.275f6ced@roar.ozlabs.ibm.com> In-Reply-To: <9af9957c-b10a-2b14-a8b7-428cd77392af@redhat.com> References: <20161020065912.16132-1-npiggin@gmail.com> <20161020065912.16132-4-npiggin@gmail.com> <9af9957c-b10a-2b14-a8b7-428cd77392af@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/3] ppc/spapr: implement H_SIGNAL_SYS_RESET List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson On Thu, 20 Oct 2016 11:21:22 +0200 Thomas Huth wrote: > On 20.10.2016 08:59, Nicholas Piggin wrote: > > The H_SIGNAL_SYS_RESET hcall allows a guest CPU to raise a system > > reset exception on other CPUs in the same guest. > > > > Signed-off-by: Nicholas Piggin > > --- > > hw/ppc/spapr_hcall.c | 42 ++++++++++++++++++++++++++++++++++++++++++ > > include/hw/ppc/spapr.h | 8 +++++++- > > 2 files changed, 49 insertions(+), 1 deletion(-) > ... > > diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h > > index aeaba3e..a28538b 100644 > > --- a/include/hw/ppc/spapr.h > > +++ b/include/hw/ppc/spapr.h > > @@ -339,7 +339,13 @@ struct sPAPRMachineState { > > #define H_XIRR_X 0x2FC > > #define H_RANDOM 0x300 > > #define H_SET_MODE 0x31C > > -#define MAX_HCALL_OPCODE H_SET_MODE > > +#define H_SIGNAL_SYS_RESET 0x380 > > +#define MAX_HCALL_OPCODE H_SIGNAL_SYS_RESET > > + > > +/* Parameters to H_SIGNAL_SYS_RESET */ > > +#define H_SIGNAL_SYS_RESET_ALL -1 > > +#define H_SIGNAL_SYS_RESET_ALLBUTSELF -2 > > + > > > > /* The hcalls above are standardized in PAPR and implemented by pHyp > > * as well. > > Is there a spec for this hypercall? I can't find it in LoPAPR v1.1 ? Oh sorry, I should have said that this is going through an internal process at moment and not in a released document yet. I'll try to get a more satisfying answer on that one. Thanks, Nick