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

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



From: Marc-André Lureau <marcandre lureau redhat com>

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

Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
---
 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


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