aboutsummaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-08-23 23:43:10 +0200
committerAlexander Graf <agraf@suse.de>2012-01-04 02:48:14 +0100
commitdd97aa8adc9a15fa509d5a0196002d309f6d21fd (patch)
treebf9cbdf4884f56effa7926332502af0d14595f6b /sysemu.h
parent963d83c85420b39eb4ab6ae1ebdcd7f818221402 (diff)
Add generic drive hotplugging
The monitor command for hotplugging is in i386 specific code. This is just plain wrong, as S390 just learned how to do hotplugging too and needs to get drives for that. So let's add a generic copy to generic code that handles drive_add in a way that doesn't have pci dependencies. All pci specific code can then be handled in a pci specific function. Signed-off-by: Alexander Graf <agraf@suse.de> --- v1 -> v2: - align generic drive_add to pci specific one - rework to split between generic and pci code v2 -> v3: - remove comment
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysemu.h b/sysemu.h
index 3806901fba..ddef2bb0c1 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -143,9 +143,13 @@ extern unsigned int nb_prom_envs;
/* pci-hotplug */
void pci_device_hot_add(Monitor *mon, const QDict *qdict);
-void drive_hot_add(Monitor *mon, const QDict *qdict);
+int pci_drive_hot_add(Monitor *mon, const QDict *qdict,
+ DriveInfo *dinfo, int type);
void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict);
+/* generic hotplug */
+void drive_hot_add(Monitor *mon, const QDict *qdict);
+
/* pcie aer error injection */
void pcie_aer_inject_error_print(Monitor *mon, const QObject *data);
int do_pcie_aer_inject_error(Monitor *mon,