mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
virtio-gpu: use virtio_instance_init_common, fixup properties
Switch over to virtio_instance_init_common. Drop duplicate properties in virtio-gpu-pci and virtio-vga as they are properly aliased now. Also drop the indirection via DEFINE_VIRTIO_GPU_PROPERTIES, we don't need it any more as the properties are defined in a single place now. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e18882952e
commit
b3409a3100
4 changed files with 7 additions and 10 deletions
|
@ -112,9 +112,6 @@ extern const GraphicHwOps virtio_gpu_ops;
|
|||
VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, false), \
|
||||
DEFINE_PROP_UINT32("vectors", _state, nvectors, 3)
|
||||
|
||||
#define DEFINE_VIRTIO_GPU_PROPERTIES(_state, _conf_field) \
|
||||
DEFINE_PROP_UINT32("max_outputs", _state, _conf_field.max_outputs, 1)
|
||||
|
||||
#define VIRTIO_GPU_FILL_CMD(out) do { \
|
||||
size_t s; \
|
||||
s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, 0, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue