mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
virtio-gpu.c: add resource_destroy class method
When destroying/unrefing resources, devices such as virtio-gpu-rutabaga need to do their own bookkeeping (free rutabaga resources that are associated with the virtio_gpu_simple_resource). This commit adds a class method so that virtio-gpu-rutabaga can override it in the next commit. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Message-Id: <b0a86630c4d601f3a269fd7e08cfefc13bd4e219.1706626470.git.manos.pitsidianakis@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
8b162082cb
commit
330399bd89
2 changed files with 25 additions and 3 deletions
|
@ -219,6 +219,9 @@ struct VirtIOGPUClass {
|
|||
void (*update_cursor_data)(VirtIOGPU *g,
|
||||
struct virtio_gpu_scanout *s,
|
||||
uint32_t resource_id);
|
||||
void (*resource_destroy)(VirtIOGPU *g,
|
||||
struct virtio_gpu_simple_resource *res,
|
||||
Error **errp);
|
||||
};
|
||||
|
||||
struct VirtIOGPUGL {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue