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