mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
1559e0d4b5
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>
10 lines
298 B
C
10 lines
298 B
C
#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;
|
|
}
|