hw/virtio-pci: fix virtio behaviour
commit9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5
authorMarcel Apfelbaum <marcel@redhat.com>
Wed, 20 Jul 2016 15:28:21 +0000 (20 18:28 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Jul 2016 21:07:10 +0000 (29 00:07 +0300)
treeb89b7b61e60cf0c27fa255b015e7b098a50d1e52
parentbe0d9760d7fa30e50ded15956f06506d993cbc88
hw/virtio-pci: fix virtio behaviour

Enable transitional virtio devices by default.
Enable virtio-1.0 for devices plugged into
PCIe ports (Root ports or Downstream ports).

Using the virtio-1 mode will remove the limitation
of the number of devices that can be attached to a machine
by removing the need for the IO BAR.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/display/virtio-gpu-pci.c
hw/display/virtio-vga.c
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h
include/hw/compat.h