summary refs log tree commit diff stats
path: root/hw/display/virtio-gpu.c
diff options
context:
space:
mode:
authorViktor Prutyanov <viktor@daynix.com>2023-06-26 12:12:57 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-07-10 15:07:50 -0400
commitee071f67f7a103c66f85f68ffe083712929122e3 (patch)
treeece878dff244ff7c25b61dfafd5868d8831794f2 /hw/display/virtio-gpu.c
parent2b5de4d7dff457d34b57fcf3f985a41ddc0db062 (diff)
downloadfocaccia-qemu-ee071f67f7a103c66f85f68ffe083712929122e3.tar.gz
focaccia-qemu-ee071f67f7a103c66f85f68ffe083712929122e3.zip
vhost: register and change IOMMU flag depending on Device-TLB state
The guest can disable or never enable Device-TLB. In these cases,
it can't be used even if enabled in QEMU. So, check Device-TLB state
before registering IOMMU notifier and select unmap flag depending on
that. Also, implement a way to change IOMMU notifier flag if Device-TLB
state is changed.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2001312
Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230626091258.24453-2-viktor@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/display/virtio-gpu.c')
0 files changed, 0 insertions, 0 deletions