]> xenbits.xensource.com Git - libvirt.git/commit
qemu_domain: Ignore all but SCSI hostdevs in qemuDomainDeviceHostdevDefPostParseResto...
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Sep 2022 13:06:19 +0000 (15:06 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Sep 2022 13:28:34 +0000 (15:28 +0200)
commita8947db1a4efc6fc53dabb67b74ba1c01c7fbc8b
treed0bfda6d0ecaf47dccaa5cf389b53648e78e3b7e
parent68e93e3180ad4e51bf9f86850dc86d8f528d6564
qemu_domain: Ignore all but SCSI hostdevs in qemuDomainDeviceHostdevDefPostParseRestoreBackendAlias()

When retiring QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI capability the
commit removed a bit too much. Previously, all other devices than
VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI were ignored in
qemuDomainDeviceHostdevDefPostParseRestoreBackendAlias(). But the
commit in question removed not only the capability check but also
this return early statement. Restore it back.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2129239
Fixes: dc8dbb27d40968c9d9bfad2c6181bccc20c0e44e
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_domain.c