From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOXdA-0006zW-UF for qemu-devel@nongnu.org; Wed, 08 Jul 2009 09:56:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOXd5-0006xg-LD for qemu-devel@nongnu.org; Wed, 08 Jul 2009 09:56:15 -0400 Received: from [199.232.76.173] (port=60676 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOXd5-0006xV-F4 for qemu-devel@nongnu.org; Wed, 08 Jul 2009 09:56:11 -0400 Received: from mx1.redhat.com ([66.187.233.31]:44362) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOXd5-0005W1-0X for qemu-devel@nongnu.org; Wed, 08 Jul 2009 09:56:11 -0400 Date: Wed, 8 Jul 2009 14:56:07 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot Message-ID: <20090708135607.GO26640@redhat.com> References: <20090707192631.GQ11590@us.ibm.com> <20090708075601.GJ28046@redhat.com> <4A549990.2060205@us.ibm.com> <20090708132623.GN26640@redhat.com> <4A54A367.3010603@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A54A367.3010603@us.ibm.com> Reply-To: "Daniel P. Berrange" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Ryan Harper , qemu-devel@nongnu.org, Gleb Natapov On Wed, Jul 08, 2009 at 08:47:19AM -0500, Anthony Liguori wrote: > Daniel P. Berrange wrote: > > > >Only other option I think of is a pure paravirt shutdown/reboot > >handler, ala Xen. That sucks in different ways though, namely > >needing a driver in the guest, which is probably worse. > > > > What do you think about Avi's suggestion of using -no-shutdown, doing a > system_powerdown, waiting to receive a powerdown (you can poll 'info > status' too to see when you entered into the paused state), and then > doing a system_reset? I'd suggesting doing a timeout too while waiting > to avoid waiting forever. That suffers from the same problem as a system_reboot command in that the guest may never start the shutdown. If that's an acceptable limitation, then we might as well implement it directly in QEMU as system_reboot so its easily available to everyone. Make 'system_reboot' take an optional timeout arg (default to 60 seconds) after which it cancels its plans. Regards, Dainel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|