]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/display/virtio-gpu.c
virtio-gpu.c: add resource_destroy class method
authorManos Pitsidianakis <manos.pitsidianakis@linaro.org>
Tue, 30 Jan 2024 14:59:20 +0000 (16:59 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 Feb 2024 11:09:33 +0000 (06:09 -0500)
commit330399bd8935c9c2100c40e168781f405545d05a
treed204bdfa0bb2602313762ce5525039c2ee3b6fb8
parent8b162082cb2d495f8661b7ee3239a36936dab2ee
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>
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h