diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-04 17:20:47 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-03-01 13:57:13 +0100 |
commit | 1559e0d4b54d1b0744983b57da893617ceae8b94 (patch) | |
tree | bc23dde4149977b956df3d7bf1eee9ee69fa510f /stubs | |
parent | b4a42f81383d60900aae09513f42eb857a5a7c7c (diff) | |
download | qemu-1559e0d4b54d1b0744983b57da893617ceae8b94.tar.gz qemu-1559e0d4b54d1b0744983b57da893617ceae8b94.tar.bz2 qemu-1559e0d4b54d1b0744983b57da893617ceae8b94.zip |
hw: move device-hotplug.o to toplevel, compile it once
The situation with device-hotplug.c is similar to qdev-monitor.c.
Add a stub for pci_drive_hot_add, so that it can be compiled once,
and move it out of hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/Makefile.objs | 1 | ||||
-rw-r--r-- | stubs/pci-drive-hot-add.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index a2603947db..9c55b34354 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -15,6 +15,7 @@ stub-obj-y += mon-printf.o stub-obj-y += mon-print-filename.o stub-obj-y += mon-protocol-event.o stub-obj-y += mon-set-error.o +stub-obj-y += pci-drive-hot-add.o stub-obj-y += reset.o stub-obj-y += set-fd-handler.o stub-obj-y += slirp.o diff --git a/stubs/pci-drive-hot-add.c b/stubs/pci-drive-hot-add.c new file mode 100644 index 0000000000..1d98145802 --- /dev/null +++ b/stubs/pci-drive-hot-add.c @@ -0,0 +1,10 @@ +#include <monitor/monitor.h> +#include <sysemu/sysemu.h> +#include <sysemu/blockdev.h> + +int pci_drive_hot_add(Monitor *mon, const QDict *qdict, DriveInfo *dinfo) +{ + /* On non-x86 we don't do PCI hotplug */ + monitor_printf(mon, "Can't hot-add drive to type %d\n", dinfo->type); + return -1; +} |