Thanks all! I will have a think about it.
-----Original Message-----
From: Jiri Denemark [mailto:jdenemar@redhat.com]
Sent: Monday, March 03, 2014 9:31 PM
To: Daniel P. Berrange
Cc: Wangyufei (James); libvir-list(a)redhat.com; Moyuxiang; Zhaoyanbin (A)
Subject: Re: [libvirt] [Question] Will we support to set boot order online?
On Mon, Mar 03, 2014 at 09:58:40 +0000, Daniel Berrange wrote:
> On Mon, Mar 03, 2014 at 08:22:13AM +0000, Wangyufei (James) wrote:
> > Hello,
> > I find that QEMU supports to set boot(QMP command "boot_set")
order
> > online, namely the virtual machine can be reboot in appointed order,
> > but libvirt had no corresponding interface. So, I want to know if libvirt
> > intend to support to set boot order online. If the answer is yes, I'll
> > try to apply the patch. If no, why?
>
> AFAIK, no one has looked at this.
>
> NB, this will only work for guests actually using the old style boot
> order. Any guests using per-device boot indexes for ordering won't
> work with this command.
Hmm, looks like it's quite useless because libvirt uses per-device boot
indexes whenever it is possible even if the domain XML used the old way
of specifying boot order. Thus, it's very likely any domain running in a
QEMU which is not ancient will be using per-device boot order.
Jirka