qemu-cr16/include/hw/virtio
Marc-André Lureau a41e2d97f9 virtio-gpu: reset gfx resources in main thread
Calling OpenGL from different threads can have bad consequences if not
carefully reviewed. It's not generally supported. In my case, I was
debugging a crash in glDeleteTextures from OPENGL32.DLL, where I asked
qemu for gl=es, and thus ANGLE implementation was expected. libepoxy did
resolution of the global pointer for glGenTexture to the GLES version
from the main thread. But it resolved glDeleteTextures to the GL
version, because it was done from a different thread without correct
context. Oops.

Let's stick to the main thread for GL calls by using a BH.

Note: I didn't use atomics for reset_finished check, assuming the BQL
will provide enough of sync, but I might be wrong.

Acked-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230726173929.690601-3-marcandre.lureau@redhat.com>
2023-08-07 15:45:45 +04:00
..
vdpa-dev.h
vhost-backend.h vhost-user: fully use new backend/frontend naming 2023-06-26 09:50:00 -04:00
vhost-scsi-common.h
vhost-scsi.h
vhost-user-blk.h
vhost-user-fs.h
vhost-user-gpio.h vhost-user-gpio: Configure vhost_dev when connecting 2023-03-02 03:10:47 -05:00
vhost-user-i2c.h
vhost-user-rng.h
vhost-user-scmi.h hw/virtio: Add a protection against duplicate vu_scmi_stop calls 2023-08-03 16:06:49 -04:00
vhost-user-scsi.h
vhost-user-vsock.h
vhost-user.h
vhost-vdpa.h vhost-vdpa: Add support for vIOMMU. 2023-05-19 10:30:46 -04:00
vhost-vsock-common.h
vhost-vsock.h
vhost.h vhost: register and change IOMMU flag depending on Device-TLB state 2023-07-10 15:07:50 -04:00
virtio-access.h
virtio-balloon.h
virtio-blk-common.h
virtio-blk.h
virtio-bus.h
virtio-crypto.h
virtio-gpu-bswap.h
virtio-gpu-pci.h
virtio-gpu-pixman.h
virtio-gpu.h virtio-gpu: reset gfx resources in main thread 2023-08-07 15:45:45 +04:00
virtio-input.h virtio-input: add a virtio-mulitouch device 2023-05-28 13:08:25 +04:00
virtio-iommu.h virtio-iommu: Fix 64kB host page size VFIO device assignment 2023-07-10 18:59:32 -04:00
virtio-md-pci.h virtio-md-pci: Support unplug requests for compatible devices 2023-07-12 09:27:30 +02:00
virtio-mem.h virtio-mem: Prepare for device unplug support 2023-07-12 09:27:31 +02:00
virtio-mmio.h
virtio-net.h virtio-net: expose virtio_net_supported_guest_offloads() 2023-06-26 09:50:00 -04:00
virtio-pci.h
virtio-pmem.h
virtio-rng.h
virtio-scsi.h virtio-scsi: reset SCSI devices from main loop thread 2023-02-23 19:49:35 +01:00
virtio-serial.h
virtio.h include/hw/virtio: document some more usage of notifiers 2023-07-10 18:59:32 -04:00