From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOXrX-0002c6-3b for qemu-devel@nongnu.org; Wed, 08 Jul 2009 10:11:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOXrS-0002WY-AJ for qemu-devel@nongnu.org; Wed, 08 Jul 2009 10:11:06 -0400 Received: from [199.232.76.173] (port=36033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOXrS-0002WF-1s for qemu-devel@nongnu.org; Wed, 08 Jul 2009 10:11:02 -0400 Received: from mx1.redhat.com ([66.187.233.31]:42954) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOXrR-0008Dj-MV for qemu-devel@nongnu.org; Wed, 08 Jul 2009 10:11:01 -0400 Date: Wed, 8 Jul 2009 15:10:58 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot Message-ID: <20090708141058.GQ26640@redhat.com> References: <20090707192631.GQ11590@us.ibm.com> <20090708075601.GJ28046@redhat.com> <4A549990.2060205@us.ibm.com> <4A54A77D.2060400@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A54A77D.2060400@redhat.com> Reply-To: "Daniel P. Berrange" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Anthony Liguori , Ryan Harper , qemu-devel@nongnu.org, Gleb Natapov On Wed, Jul 08, 2009 at 05:04:45PM +0300, Avi Kivity wrote: > On 07/08/2009 04:05 PM, Anthony Liguori wrote: > >>OS is free to ignore ACPI shutdown request and in this case > >>reboot_requested will not be reset. On the next user initiated > >>guest power down qemu will reboot instead of exit. > > > >Indeed. This is what has kept me from applying this but I just can't > >think of any better solution. > > > >Any ideas? > > > >The drive behind implementing this feature is so that we can implement > >a proper virDomainReboot in libvirt. > > > > How does Xen hvm implement it? You have to install the Xen paravirt drivers, so Xen HVM handles graceful shutdown/reboot in the same way as pure Xen paravirt. They watch a flag in xenstore and invoke shutdown -r / -h according to the flag. Regards, Daniel -- |: 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 :|