]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: mdev: Use vfio-pci 'display' property only with vfio-pci mdevs
authorFarhan Ali <alifm@linux.ibm.com>
Thu, 30 Aug 2018 17:07:34 +0000 (13:07 -0400)
committerErik Skultety <eskultet@redhat.com>
Fri, 31 Aug 2018 12:18:16 +0000 (14:18 +0200)
commitd6f97d1338ba9470f7c745fab317d272cde84d38
treea1dcd6d284db1a463417099f285e874340968690
parent4c37f4c4dd1b574bfb1aa342da653ef3cd89bc4e
qemu: mdev: Use vfio-pci 'display' property only with vfio-pci mdevs

S390 is aware of both vfio-pci and vfio-ccw devices, so
on S390 the capability QEMU_CAPS_VFIO_PCI_DISPLAY will be
available. Add an extra check to make sure we only set the
display to off for vfio-pci mediated devices. Otherwise we
add display for vfio-ccw device and this breaks vfio-ccw
device qemu command line.

Fixes: d54e45b6e conf: Introduce new <hostdev> attribute 'display'
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_domain.c