qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Manos Pitsidianakis
Subject: [PATCH v1 0/3] Fix resource freeing bugs in virtio-gpu-rutabaga
Date: Fri, 26 Jan 2024 16:41:47 +0200

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
-- 
γαῖα πυρί μιχθήτω




reply via email to

[Prev in Thread] Current Thread [Next in Thread]