mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
virtio-gpu: Add definition for resource_uuid feature
Add the VIRTIO_GPU_F_RESOURCE_UUID feature to enable the assignment of resources UUIDs for export to other virtio devices. Signed-off-by: Dorinda Bassey <dbassey@redhat.com> Message-Id: <20241007070013.3350752-1-dbassey@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
7433709a14
commit
1e77a4a32f
3 changed files with 14 additions and 0 deletions
|
@ -631,6 +631,14 @@ vhost_user_gpu_device_realize(DeviceState *qdev, Error **errp)
|
|||
error_report("EDID requested but the backend doesn't support it.");
|
||||
g->parent_obj.conf.flags &= ~(1 << VIRTIO_GPU_FLAG_EDID_ENABLED);
|
||||
}
|
||||
if (virtio_has_feature(g->vhost->dev.features,
|
||||
VIRTIO_GPU_F_RESOURCE_UUID)) {
|
||||
g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_RESOURCE_UUID_ENABLED;
|
||||
}
|
||||
if (virtio_has_feature(g->vhost->dev.features,
|
||||
VIRTIO_GPU_F_RESOURCE_UUID)) {
|
||||
g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_RESOURCE_UUID_ENABLED;
|
||||
}
|
||||
|
||||
if (!virtio_gpu_base_device_realize(qdev, NULL, NULL, errp)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue