Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOZN3-0007nY-Ao for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:47:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOZMy-0007mD-Uk for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:47:44 -0400 Received: from [199.232.76.173] (port=59094 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOZMy-0007mA-MA for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:47:40 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:31398 helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOZMy-00021F-84 for qemu-devel@nongnu.org; Wed, 08 Jul 2009 11:47:40 -0400 Date: Wed, 8 Jul 2009 16:47:46 +0100 From: Stefano Stabellini Subject: Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot In-Reply-To: <4A54B848.8060605@redhat.com> Message-ID: References: <20090707192631.GQ11590@us.ibm.com> <20090708075601.GJ28046@redhat.com> <4A549990.2060205@us.ibm.com> <4A54A77D.2060400@redhat.com> <20090708141058.GQ26640@redhat.com> <4A54B848.8060605@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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, 8 Jul 2009, Avi Kivity wrote: > On 07/08/2009 05:10 PM, Daniel P. Berrange wrote: > >>> 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. > > > > What happens if the driver is not installed? The guest just keeps > going, right? > There are ways to detect if the guest has pv drivers installed or not, if they are present soft shutdown/reboot is available; if they are not installed soft shutdown/reboot is not available.