qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] modify boot order of guest, and take effect after rebooting
@ 2014-07-24  8:38 arei.gonglei
  2014-07-24  8:38 ` [Qemu-devel] [PATCH 1/6] bootindex: add {del, modify}_boot_device_path function arei.gonglei
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: arei.gonglei @ 2014-07-24  8:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.maydell, weidong.huang, mst, aik, armbru, kraxel, dmitry,
	akong, agraf, Gonglei, lersek, marcel.a, somlo, luonengjun,
	peter.huangpeng, alex.williamson, stefanha, pbonzini, lcapitulino,
	rth, kwolf, peter.crosthwaite, imammedo, afaerber

From: Gonglei <arei.gonglei@huawei.com>

Sometimes, we want to modify boot order of a guest, but no need to
shutdown it. We can call dynamic changing bootindex of a guest, which
can be assured taking effect just after the guest rebooting.

For example, in P2V scene, we boot a guest and then attach a
new system disk, for copying some thing. We want to assign the
new disk as the booting disk, which means its bootindex=1.

Different nics can be assigen different bootindex dynamically
also make sense.

The patchsets add one qmp interface, and add an fw_cfg_machine_reset()
to achieve it. Please review, Thanks.

Gonglei (6):
  bootindex: add {del,modify}_boot_device_path function
  fw_cfg: add fw_cfg_machine_reset function
  bootindex: delete bootindex when device is removed
  qmp: add set-bootindex command
  qemu-monitor: HMP set-bootindex wrapper
  spapr: fix possible memory leak

 hmp-commands.hx           | 15 +++++++++++++
 hmp.c                     | 13 +++++++++++
 hmp.h                     |  1 +
 hw/block/virtio-blk.c     |  1 +
 hw/i386/kvm/pci-assign.c  |  1 +
 hw/misc/vfio.c            |  1 +
 hw/net/e1000.c            |  1 +
 hw/net/eepro100.c         |  1 +
 hw/net/ne2000.c           |  1 +
 hw/net/rtl8139.c          |  1 +
 hw/net/virtio-net.c       |  1 +
 hw/net/vmxnet3.c          |  1 +
 hw/nvram/fw_cfg.c         | 54 ++++++++++++++++++++++++++++++++++++++------
 hw/ppc/spapr.c            |  1 +
 hw/scsi/scsi-generic.c    |  1 +
 hw/usb/dev-network.c      |  1 +
 hw/usb/host-libusb.c      |  1 +
 hw/usb/redirect.c         |  1 +
 include/hw/nvram/fw_cfg.h |  2 ++
 include/sysemu/sysemu.h   |  4 ++++
 qapi-schema.json          | 16 +++++++++++++
 qmp-commands.hx           | 24 ++++++++++++++++++++
 qmp.c                     | 17 ++++++++++++++
 vl.c                      | 57 +++++++++++++++++++++++++++++++++++++++++++++++
 24 files changed, 210 insertions(+), 7 deletions(-)

-- 
1.7.12.4

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

end of thread, other threads:[~2014-07-25  3:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24  8:38 [Qemu-devel] [PATCH 0/6] modify boot order of guest, and take effect after rebooting arei.gonglei
2014-07-24  8:38 ` [Qemu-devel] [PATCH 1/6] bootindex: add {del, modify}_boot_device_path function arei.gonglei
2014-07-24 10:08   ` Gerd Hoffmann
2014-07-24 12:39     ` Gonglei (Arei)
2014-07-24 13:25       ` Gerd Hoffmann
2014-07-25  3:31         ` Gonglei (Arei)
2014-07-24  8:38 ` [Qemu-devel] [PATCH 2/6] fw_cfg: add fw_cfg_machine_reset function arei.gonglei
2014-07-24  8:38 ` [Qemu-devel] [PATCH 3/6] bootindex: delete bootindex when device is removed arei.gonglei
2014-07-24  8:39 ` [Qemu-devel] [PATCH 4/6] qmp: add set-bootindex command arei.gonglei
2014-07-24  8:39 ` [Qemu-devel] [PATCH 5/6] qemu-monitor: HMP set-bootindex wrapper arei.gonglei
2014-07-24  8:39 ` [Qemu-devel] [PATCH 6/6] spapr: fix possible memory leak arei.gonglei

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).