[RFC v2 12/16] qemu: set default address type on vhost-user video model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

It's a virtio device, like virtio-gpu.

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 src/qemu/qemu_domain_address.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c
index 5aaf77028b..978bef59ed 100644
--- a/src/qemu/qemu_domain_address.c
+++ b/src/qemu/qemu_domain_address.c
@@ -330,7 +330,8 @@ qemuDomainPrimeVirtioDeviceAddresses(virDomainDefPtr def,
         virDomainVideoDefPtr video = def->videos[i];
 
         if (video->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE &&
-            video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO)
+            (video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO ||
+             video->type == VIR_DOMAIN_VIDEO_TYPE_VHOST_USER))
             video->info.type = type;
     }
 
-- 
2.19.0.rc0.48.gb9dfa238d5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux