]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio-pci.h
virtio-pci: add flags to enable/disable legacy/modern
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Jun 2015 10:34:26 +0000 (12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:05 +0000 (18:15 +0200)
commite266d421490e0ae83044bbebb209b2d3650c0ba6
tree32f771aadda59b7cbe77b416a48261a6ec33bbd7
parent54c720d49d3f9741b52ac95c65a5cc990254a5d8
virtio-pci: add flags to enable/disable legacy/modern

Add VIRTIO_PCI_FLAG_DISABLE_LEGACY and VIRTIO_PCI_FLAG_DISABLE_MODERN
for VirtIOPCIProxy->flags.  Also add properties for them.  They can be
used to disable modern (virtio 1.0) or legacy (virtio 0.9) modes.

By default only legacy is advertized, modern will be turned on by
default once all remaining spec compilance issues are addressed.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h