aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-04-30 13:35:34 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-05-10 13:55:28 +0200
commit37f86af087397688c7de4ea4ddf05449d48e6ee0 (patch)
tree17e0140a03ecc1c9b7db7e5d4e5d873d20915257 /include
parent063cd34a03e2a12bf338137410cb972250fe5027 (diff)
downloadqemu-37f86af087397688c7de4ea4ddf05449d48e6ee0.zip
qemu-37f86af087397688c7de4ea4ddf05449d48e6ee0.tar.gz
qemu-37f86af087397688c7de4ea4ddf05449d48e6ee0.tar.bz2
virtio-gpu: move virgl realize + properties
Move device init (realize) and properties. Drop the virgl property, the virtio-gpu-gl-device has virgl enabled no matter what. Just use virtio-gpu-device instead if you don't want enable virgl and opengl. This simplifies the logic and reduces the test matrix. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20210430113547.1816178-1-kraxel@redhat.com Message-Id: <20210430113547.1816178-4-kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/virtio-gpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h
index 5b2d011..7430f3c 100644
--- a/include/hw/virtio/virtio-gpu.h
+++ b/include/hw/virtio/virtio-gpu.h
@@ -221,6 +221,7 @@ int virtio_gpu_create_mapping_iov(VirtIOGPU *g,
void virtio_gpu_cleanup_mapping_iov(VirtIOGPU *g,
struct iovec *iov, uint32_t count);
void virtio_gpu_process_cmdq(VirtIOGPU *g);
+void virtio_gpu_device_realize(DeviceState *qdev, Error **errp);
/* virtio-gpu-3d.c */
void virtio_gpu_virgl_process_cmd(VirtIOGPU *g,