]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: Allow to look up virtio-block devices by their CCW address
authorThomas Huth <thuth@redhat.com>
Wed, 25 Nov 2020 11:06:47 +0000 (12:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Dec 2020 13:16:31 +0000 (14:16 +0100)
commit5db43b5a765cdf9f060e7e7af5cabe7727864ab7
treec29d731e80b8df50ae68b753861ffeac8030aa79
parentf5c8cf9e0ef5376374e83899d6d73f1aaaafc254
domain_conf: Allow to look up virtio-block devices by their CCW address

On s390x, devices are accessed via the channel subsystem by default,
so we need to look up the devices via their CCW address there instead
of using PCI.

This fixes "virsh domfsinfo" on s390x for virtio-block devices (the first
attempt from commit f8333b3b0a7 did it in the wrong way, reporting the
device name on the guest side instead of the target name on the host side).

Fixes: f8333b3b0a ("qemu: Fix domfsinfo for non-PCI device information ...")
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1858771
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_driver.c