Received: from eggs.gnu.org ([2001:4830:134:3::10]:50034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Xql-0002pg-2V for qemu-devel@nongnu.org; Mon, 30 Jun 2014 05:26:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1Xqd-0002EC-47 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 05:26:11 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:56266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Xqc-0002Cc-Cz for qemu-devel@nongnu.org; Mon, 30 Jun 2014 05:26:03 -0400 Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 30 Jun 2014 14:55:58 +0530 From: Nikunj A Dadhania In-Reply-To: <31B6319B-D5B1-4FA6-829A-679B692AF436@suse.de> References: <1404117329-7899-1-git-send-email-nikunj@linux.vnet.ibm.com> <31B6319B-D5B1-4FA6-829A-679B692AF436@suse.de> Date: Mon, 30 Jun 2014 14:55:52 +0530 Message-ID: <87oaxawxy7.fsf@abhimanyu.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v5] ppc: spapr-rtas - implement os-term rtas call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Benjamin Herrenschmidt , "aik@ozlabs.ru" , Tyrel Datwyler , "qemu-devel@nongnu.org" , "qemu-ppc@nongnu.org" , Anton Blanchard Alexander Graf writes: >> Am 30.06.2014 um 10:35 schrieb Nikunj A Dadhania : >> >> +static void rtas_ibm_os_term(PowerPCCPU *cpu, >> + sPAPREnvironment *spapr, >> + uint32_t token, uint32_t nargs, >> + target_ulong args, >> + uint32_t nret, target_ulong rets) >> +{ >> + target_ulong ret = 0; >> + >> + qapi_event_send_guest_panicked(GUEST_PANIC_ACTION_PAUSE, &error_abort); > > The guest doesn't pause. I see the event reaching libvirt and a dump taken and the guest restarts. > Since the guest will call os-term in a loop, this will also flood the > event listener with lots and lots of panic messages. do { status = rtas_call(rtas_token("ibm,os-term"), 1, 1, NULL, __pa(rtas_os_term_buf)); } while (rtas_busy_delay(status)); So when status from the rtas call is success, the loop should exit. Am I missing something? Regards Nikunj