Hi Antonio,
IMHO, ideally, virtio-gpu and vhost-user-gpu both, would use the infrastructure from the patch I linked to store the
virtio objects, so that they can be later shared with other devices.
Which, in terms of code, would mean changing:
g_hash_table_insert(g->resource_uuids, GUINT_TO_POINTER(assign.resource_id), uuid);
by:
virtio_add_dmabuf(uuid, assign.resource_id);
...and simplify part of the infrastructure.
Let me know what you think.
Regard,
Albert