mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
virtio: drop name parameter for virtio_init()
This patch drops the name parameter for the virtio_init function. The pair between the numeric device ID and the string device ID (name) of a virtio device already exists, but not in a way that lets us map between them. This patch lets us do this and removes the need for the name parameter in the virtio_init function. Signed-off-by: Jonah Palmer <jonah.palmer@oracle.com> Message-Id: <1648819405-25696-2-git-send-email-jonah.palmer@oracle.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
503e355465
commit
3857cd5c7f
24 changed files with 77 additions and 43 deletions
|
@ -173,7 +173,7 @@ virtio_gpu_base_device_realize(DeviceState *qdev,
|
|||
}
|
||||
|
||||
g->virtio_config.num_scanouts = cpu_to_le32(g->conf.max_outputs);
|
||||
virtio_init(VIRTIO_DEVICE(g), "virtio-gpu", VIRTIO_ID_GPU,
|
||||
virtio_init(VIRTIO_DEVICE(g), VIRTIO_ID_GPU,
|
||||
sizeof(struct virtio_gpu_config));
|
||||
|
||||
if (virtio_gpu_virgl_enabled(g->conf)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue