From: "Daniel P. Berrange" <berrange@redhat.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Ryan Harper <ryanh@us.ibm.com>, Avi Kivity <avi@redhat.com>,
Gleb Natapov <gleb@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot
Date: Wed, 8 Jul 2009 16:54:53 +0100 [thread overview]
Message-ID: <20090708155453.GS26640@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0907081646300.26159@kaball-desktop>
On Wed, Jul 08, 2009 at 04:47:46PM +0100, Stefano Stabellini wrote:
> 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.
Having the drivers installed though, still doesn't guarentee that the
guest will honour the operation :-) Both graceful shutdown & reboot are
just *requests* by the host admin, which cannot be expected to work
all the time, it is just best effort. The admin can choose to forcably
destroy a VM if it didn't honour their request to shutdown/reboot.
Similarly this is all the libvirt APIs for shutdown/reboot define
for semantics - best effort, not a firm guarentee.
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 :|
next prev parent reply other threads:[~2009-07-08 15:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 19:26 [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot Ryan Harper
2009-07-08 5:06 ` Avi Kivity
2009-07-08 13:07 ` Anthony Liguori
2009-07-08 13:11 ` Avi Kivity
2009-07-08 13:16 ` Anthony Liguori
2009-07-08 13:28 ` Avi Kivity
2009-07-08 7:56 ` Gleb Natapov
2009-07-08 13:05 ` Anthony Liguori
2009-07-08 13:26 ` Daniel P. Berrange
2009-07-08 13:47 ` Anthony Liguori
2009-07-08 13:56 ` Daniel P. Berrange
2009-07-08 13:59 ` Anthony Liguori
2009-07-08 15:43 ` Ryan Harper
2009-07-08 15:49 ` Anthony Liguori
2009-07-08 15:58 ` Ryan Harper
2009-07-08 16:02 ` Anthony Liguori
2009-07-08 16:02 ` Avi Kivity
2009-07-16 8:58 ` Amit Shah
2009-07-16 14:39 ` Jamie Lokier
2009-07-16 14:49 ` Amit Shah
2009-07-08 13:49 ` Gleb Natapov
2009-07-08 14:04 ` Avi Kivity
2009-07-08 14:10 ` Daniel P. Berrange
2009-07-08 15:16 ` Avi Kivity
2009-07-08 15:47 ` Stefano Stabellini
2009-07-08 15:54 ` Daniel P. Berrange [this message]
2009-07-08 15:59 ` Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090708155453.GS26640@redhat.com \
--to=berrange@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ryanh@us.ibm.com \
--cc=stefano.stabellini@eu.citrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.