qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?
@ 2014-06-25 10:28 ChenLiang
  2014-06-25 13:27 ` Eric Blake
       [not found] ` <043E36F0EEC5164DBB381DFD6AB7D4221777BA92@Bjmail2.kingsoft.cn>
  0 siblings, 2 replies; 6+ messages in thread
From: ChenLiang @ 2014-06-25 10:28 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Paolo Bonzini

hi,all
Qemu can not modify boot index when vm is running.
It is inconvenience when we install guest os. Is it
necessary to achieve modify boot index online?
We can add one qmp interface to achieve it.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?
  2014-06-25 10:28 [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running? ChenLiang
@ 2014-06-25 13:27 ` Eric Blake
  2014-06-25 13:29   ` Paolo Bonzini
  2014-06-25 13:46   ` 陈梁
       [not found] ` <043E36F0EEC5164DBB381DFD6AB7D4221777BA92@Bjmail2.kingsoft.cn>
  1 sibling, 2 replies; 6+ messages in thread
From: Eric Blake @ 2014-06-25 13:27 UTC (permalink / raw)
  To: ChenLiang, qemu-devel@nongnu.org; +Cc: Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

On 06/25/2014 04:28 AM, ChenLiang wrote:
> hi,all
> Qemu can not modify boot index when vm is running.

So? Boot index is used exactly once - when the domain is started. After
that, you aren't booting any more, so what benefit is there to changing
boot index on the fly?

> It is inconvenience when we install guest os. Is it
> necessary to achieve modify boot index online?

virt-install manages to install guests just fine without changing the
boot index on the fly; it manages to sequence multiple qemu runs with
different boot indices between runs.

> We can add one qmp interface to achieve it.

You're welcome to submit a patch if you think you have a use case; but I
personally don't see the current setup as limiting.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?
  2014-06-25 13:27 ` Eric Blake
@ 2014-06-25 13:29   ` Paolo Bonzini
  2014-06-25 13:46     ` 陈梁
  2014-06-25 13:46   ` 陈梁
  1 sibling, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2014-06-25 13:29 UTC (permalink / raw)
  To: Eric Blake, ChenLiang, qemu-devel@nongnu.org

Il 25/06/2014 15:27, Eric Blake ha scritto:
>> > Qemu can not modify boot index when vm is running.
> So? Boot index is used exactly once - when the domain is started. After
> that, you aren't booting any more, so what benefit is there to changing
> boot index on the fly?
>

It's also used when you reboot.  However, there are currently 
pre-existing bugs in bootindex handling (especially regarding hotplug 
and hot-unplug) that should be fixed before allowing modification of 
boot index while the VM is running.

The command to do the modification could be qom-set.  We can make the 
bootindex property runtime-modifiable.

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?
  2014-06-25 13:29   ` Paolo Bonzini
@ 2014-06-25 13:46     ` 陈梁
  0 siblings, 0 replies; 6+ messages in thread
From: 陈梁 @ 2014-06-25 13:46 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: ChenLiang, 陈梁, qemu-devel@nongnu.org


> Il 25/06/2014 15:27, Eric Blake ha scritto:
>>>> Qemu can not modify boot index when vm is running.
>> So? Boot index is used exactly once - when the domain is started. After
>> that, you aren't booting any more, so what benefit is there to changing
>> boot index on the fly?
>> 
> 
> It's also used when you reboot.  However, there are currently pre-existing bugs in bootindex handling (especially regarding hotplug and hot-unplug) that should be fixed before allowing modification of boot index while the VM is running.
> 

yeah, it is.
> The command to do the modification could be qom-set.  We can make the bootindex property runtime-modifiable.
> 

ok, I will try to achieve it.

Best regards
chenliang
> Paolo
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?
  2014-06-25 13:27 ` Eric Blake
  2014-06-25 13:29   ` Paolo Bonzini
@ 2014-06-25 13:46   ` 陈梁
  1 sibling, 0 replies; 6+ messages in thread
From: 陈梁 @ 2014-06-25 13:46 UTC (permalink / raw)
  To: Eric Blake
  Cc: ChenLiang, 陈梁, qemu-devel@nongnu.org, Paolo Bonzini



> On 06/25/2014 04:28 AM, ChenLiang wrote:
>> hi,all
>> Qemu can not modify boot index when vm is running.
> 
> So? Boot index is used exactly once - when the domain is started. After
> that, you aren't booting any more, so what benefit is there to changing
> boot index on the fly?
> 
>> It is inconvenience when we install guest os. Is it
>> necessary to achieve modify boot index online?
> 
> virt-install manages to install guests just fine without changing the
> boot index on the fly; it manages to sequence multiple qemu runs with
> different boot indices between runs.

Thanks for your advice. I will try it.
> 
>> We can add one qmp interface to achieve it.
> 
> You're welcome to submit a patch if you think you have a use case; but I
> personally don't see the current setup as limiting.
> 

There is one case when reboot in vm. 

Best regards
chenliang
> -- 
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] 答复:  [question] Is it, valuable to achieve modify boot index when vm is running?
       [not found] ` <043E36F0EEC5164DBB381DFD6AB7D4221777BA92@Bjmail2.kingsoft.cn>
@ 2014-06-26  3:16   ` ChenLiang
  0 siblings, 0 replies; 6+ messages in thread
From: ChenLiang @ 2014-06-26  3:16 UTC (permalink / raw)
  To: "YUKEWEI [于科伟]"
  Cc: Paolo Bonzini, qemu-devel@nongnu.org, qemu-discuss@nongnu.org

> ________________________________________

> 发件人: qemu-devel-bounces+yukewei=kingsoft.com@nongnu.org [qemu-devel-bounces+yukewei=kingsoft.com@nongnu.org] 代表 ChenLiang [chenliang88@huawei.com]
> 发送时间: 2014年6月25日 18:28
> 收件人: qemu-devel@nongnu.org
> 抄送: Paolo Bonzini
> 主题: [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?
> 
> hi,all
> Qemu can not modify boot index when vm is running.
> It is inconvenience when we install guest os. Is it
> necessary to achieve modify boot index online?
> We can add one qmp interface to achieve it.
> 
> cc: qemu-discuss
> Do you mean changing the boot option without closing QEMU process?
> If so, it is a good demand. 


yeah, I mean it.

> --
> Best Regards,
> Kewei

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-26  3:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 10:28 [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running? ChenLiang
2014-06-25 13:27 ` Eric Blake
2014-06-25 13:29   ` Paolo Bonzini
2014-06-25 13:46     ` 陈梁
2014-06-25 13:46   ` 陈梁
     [not found] ` <043E36F0EEC5164DBB381DFD6AB7D4221777BA92@Bjmail2.kingsoft.cn>
2014-06-26  3:16   ` [Qemu-devel] 答复: " ChenLiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).