From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkfRA-0007D1-Me for qemu-devel@nongnu.org; Sat, 23 Jul 2011 12:52:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkfR9-0006uP-GC for qemu-devel@nongnu.org; Sat, 23 Jul 2011 12:52:24 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:41858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkfR9-0006uH-Ar for qemu-devel@nongnu.org; Sat, 23 Jul 2011 12:52:23 -0400 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by e6.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p6NGRsuT004188 for ; Sat, 23 Jul 2011 12:27:54 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6NGq1qo160336 for ; Sat, 23 Jul 2011 12:52:01 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6NCpma1002261 for ; Sat, 23 Jul 2011 09:51:48 -0300 Message-ID: <4E2AFC2F.2070003@us.ibm.com> Date: Sat, 23 Jul 2011 11:51:59 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <4DFABB12.4050101@cn.fujitsu.com> In-Reply-To: <4DFABB12.4050101@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: qemu-devel On 06/16/2011 09:25 PM, Wen Congyang wrote: > Daniel P. Berrange sent a libvirt's patch to support > reboots with the QEMU driver. He implements it in > json model like this: > 1. add -no-shutdown in the qemu's option: > qemu -no-shutdown xxxx > 2. shutdown the vm by monitor command system_powerdown > 3. wait for shutdown event > 4. reset the vm by monitor command system_reset > > no_shutdown will be reset to 0 if the vm is powered down. > We only can reboot the vm once. > > If no_shutdown is not reset to 0, we can reboot the vm > many times. > > Signed-off-by: Wen Congyang Applied. Thanks. Regards, Anthony Liguori > > --- > vl.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/vl.c b/vl.c > index dbdec71..e2e52ec 100644 > --- a/vl.c > +++ b/vl.c > @@ -1396,7 +1396,6 @@ static void main_loop(void) > monitor_protocol_event(QEVENT_SHUTDOWN, NULL); > if (no_shutdown) { > vm_stop(VMSTOP_SHUTDOWN); > - no_shutdown = 0; > } else > break; > }