aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Mauerer <wolfgang.mauerer@siemens.com>2010-03-02 09:40:51 +0100
committerDaniel Veillard <veillard@redhat.com>2010-03-02 09:40:51 +0100
commit8540dadbe9c131a2a0edef440d561e98b396e197 (patch)
tree40e310eb6f0a01342ea0df49c30332b0c0569ce2 /src/qemu/qemu_monitor.h
parentFix PCI address handling when controllers are deleted (diff)
downloadlibvirt-8540dadbe9c131a2a0edef440d561e98b396e197.tar.gz
libvirt-8540dadbe9c131a2a0edef440d561e98b396e197.tar.bz2
libvirt-8540dadbe9c131a2a0edef440d561e98b396e197.zip
Use device_del to remove SCSI controllers
when the underlying qemu supports the drive/device model and the controller has been added this way. * src/qemu/qemu_driver.c: use qemuMonitorDelDevice() when detaching PCI controller and if supported * src/qemu/qemu_monitor.[ch]: add new qemuMonitorDelDevice() function * src/qemu/qemu_monitor_json.[ch]: JSON backend for DelDevice command * src/qemu/qemu_monitor_text.[ch]: Text backend for DelDevice command
Diffstat (limited to 'src/qemu/qemu_monitor.h')
-rw-r--r--src/qemu/qemu_monitor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
index 0ac39574f..3e552360e 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -290,6 +290,9 @@ int qemuMonitorGetAllPCIAddresses(qemuMonitorPtr mon,
int qemuMonitorAddDevice(qemuMonitorPtr mon,
const char *devicestr);
+int qemuMonitorDelDevice(qemuMonitorPtr mon,
+ const char *devicestr);
+
int qemuMonitorAddDrive(qemuMonitorPtr mon,
const char *drivestr);