[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot |
Date: |
Wed, 8 Jul 2009 16:54:53 +0100 |
User-agent: |
Mutt/1.4.1i |
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 :|
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, (continued)
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Anthony Liguori, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Avi Kivity, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Amit Shah, 2009/07/16
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Jamie Lokier, 2009/07/16
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Amit Shah, 2009/07/16
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Gleb Natapov, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Avi Kivity, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Daniel P. Berrange, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Avi Kivity, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Stefano Stabellini, 2009/07/08
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot,
Daniel P. Berrange <=
- Re: [Qemu-devel] [PATCH][RESEND] Add monitor command for system_reboot, Stefano Stabellini, 2009/07/08