[PATCH v1 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga

Manos Pitsidianakis posted 3 patches 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1706279540.git.manos.pitsidianakis@linaro.org
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>
There is a newer version of this series
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(-)
[PATCH v1 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga
Posted by Manos Pitsidianakis 10 months ago
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
-- 
γαῖα πυρί μιχθήτω