]> git.proxmox.com Git - qemu.git/commit - net.c
qemu: PCI device, disk and host network hot-add / hot-remove (Marcelo Tosatti)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 11 Feb 2009 15:21:54 +0000 (15:21 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 11 Feb 2009 15:21:54 +0000 (15:21 +0000)
commit6f338c3469297d748be33aea864161e36e068436
tree99f66dd4c49c9f6ded9b1d13f47e33900a96e47c
parent880345c484df16a1ec91febb8751d43b5fb8fc77
qemu: PCI device, disk and host network hot-add / hot-remove (Marcelo Tosatti)

Add monitor command to hot-add PCI devices (nic and storage).

Syntax is:

pci_add pci_addr=[[<domain>:]<bus>:]<slot> nic|storage params

It returns the domain, bus and slot for the newly added device on success.

It is possible to attach a disk to a device after PCI initialization via
the drive_add command. If so, a manual scan of the SCSI bus on the guest
is necessary.

Save QEMUMachine necessary for drive_init.

Add monitor command to hot-remove devices, remove device data on _EJ0 notification.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6610 c046a42c-6fe2-441c-8c8c-71466251a162
Makefile.target
hw/acpi.c
hw/boards.h
hw/device-hotplug.c [new file with mode: 0644]
hw/pci-hotplug.c [new file with mode: 0644]
hw/pci.h
monitor.c
net.c
net.h
sysemu.h
vl.c