]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: during PCI hotplug, require that the controller support hotplug
authorLaine Stump <laine@redhat.com>
Mon, 6 Apr 2020 03:44:16 +0000 (23:44 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 13 Apr 2020 02:43:48 +0000 (22:43 -0400)
commit7118bdee1550b6022e7362402ca8204add4cf80b
treef67d8a0e8cb6b07cd0735fcc00601fba995978db
parenta283189f8c64882681ea99259ccfc8d1b8e524dd
conf: during PCI hotplug, require that the controller support hotplug

Before this patch we would simply rely on QEMU failing to attach the
device. Since we have a flag in the address set telling us which
controllers support hotplug, we can fail the operation sooner.

This also assures that when hotplugging with no provided PCI address,
that we skip any controllers with hotplug='off', and attempt to assign
the device to a controller that not only supports hotplug, but also
has it enabled.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_addr.c