qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga
@ 2024-01-26 14:41 Manos Pitsidianakis
  2024-01-26 14:41 ` [PATCH v1 1/3] hw/display/virtio-gpu.c: use reset_bh class method Manos Pitsidianakis
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Manos Pitsidianakis @ 2024-01-26 14:41 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, Michael S. Tsirkin, Gurchetan Singh, Alyssa Ross

While testing the rutabaga gpu device, we noticed that if the device is 
reset, it stops working and complains about missing resource ids. A 
quick investigation discovered that the generic VirtIOGPU implementation 
frees all resources, but for Rutabaga, they are tied with rutabaga 
objects that need to be destroyed as well.

This series adds a resource_destroy class method that the Rutabaga 
device can override and do its own bookkeeping. 

Manos Pitsidianakis (3):
  hw/display/virtio-gpu.c: use reset_bh class method
  virtio-gpu.c: add resource_destroy class method
  virtio-gpu-rutabaga.c: override resource_destroy method

 hw/display/virtio-gpu-rutabaga.c | 31 ++++++++++++++++++++-----------
 hw/display/virtio-gpu.c          | 21 +++++++++++++++++----
 include/hw/virtio/virtio-gpu.h   |  2 ++
 3 files changed, 39 insertions(+), 15 deletions(-)


base-commit: e029fe22caad9b75c7ab69bd4e84853c11fb71e0
-- 
γαῖα πυρί μιχθήτω



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-29  8:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 14:41 [PATCH v1 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga Manos Pitsidianakis
2024-01-26 14:41 ` [PATCH v1 1/3] hw/display/virtio-gpu.c: use reset_bh class method Manos Pitsidianakis
2024-01-29  8:17   ` Marc-André Lureau
2024-01-26 14:41 ` [PATCH v1 2/3] virtio-gpu.c: add resource_destroy " Manos Pitsidianakis
2024-01-26 15:22   ` Philippe Mathieu-Daudé
2024-01-26 18:19     ` Manos Pitsidianakis
2024-01-29  8:24       ` Marc-André Lureau
2024-01-26 18:09   ` Alex Bennée
2024-01-26 18:15     ` Manos Pitsidianakis
2024-01-26 14:41 ` [PATCH v1 3/3] virtio-gpu-rutabaga.c: override resource_destroy method Manos Pitsidianakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).