From 6f338c3469297d748be33aea864161e36e068436 Mon Sep 17 00:00:00 2001 From: aliguori Date: Wed, 11 Feb 2009 15:21:54 +0000 Subject: 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=[[:]:] 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 Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6610 c046a42c-6fe2-441c-8c8c-71466251a162 --- net.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net.h') diff --git a/net.h b/net.h index a982394ee7..03c7f1831d 100644 --- a/net.h +++ b/net.h @@ -102,6 +102,8 @@ void net_slirp_redir(const char *redir_str); void net_cleanup(void); int slirp_is_inited(void); void net_client_check(void); +void net_host_device_add(const char *device, const char *opts); +void net_host_device_remove(int vlan_id, const char *device); #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup" #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown" -- cgit v1.2.1