Today, hotplug of a SCSI hostdev relies on the presence of an existing
SCSI controller, which can be defined in the initial domain XML. Hotplug
of a SCSI controller relies on the presence of a PCI bus, which does not
work in all environments.
These patches correct this behavior, in order to allow hotplug (and unplug)
work without incident.
Changes from v2->v3:
- Patch 2: Combine attach code within QEMU_CAPS_DEVICE check
- Patch 2: Restructure detach to cover ..._TYPE_NONE controllers
Changes from v1->v2:
- Patch 2: Check for VIR_..._TYPE_NONE on controller->info.type
- Patch 2: Check device address for TYPE_CCW controllers during detach
- Patch 1: Fixed an indentation change that was missed
Eric Farman (3):
qemu: Rename controller hotplug functions to not be PCI-specific
qemu: Separate calls based on controller bus type
qemu: Auto-generate controller for hotplugged hostdev
src/qemu/qemu_driver.c | 4 +--
src/qemu/qemu_hotplug.c | 62 +++++++++++++++++++++++++++++++++++------------
src/qemu/qemu_hotplug.h | 12 ++++-----
3 files changed, 54 insertions(+), 24 deletions(-)
--
1.7.9.5