Revert "hw: report invalid disable-legacy|modern usage for virtio-1-only devs"
commitdd56040d297a0c530e204e9f459b256e3ddd7e8f
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 29 Jul 2019 16:29:03 +0000 (29 17:29 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Jul 2019 20:57:27 +0000 (29 16:57 -0400)
tree0a4174482e923564cb2b89ea733dab9f15a5c674
parent92fd453c6717acbeafcbbac39084a6f1c9ac6827
Revert "hw: report invalid disable-legacy|modern usage for virtio-1-only devs"

This reverts commit f2784eed306449c3d04a71a05ed6463b8289aedf
since that accidentally removes the PCIe capabilities from virtio
devices because virtio_pci_dc_realize is called before the new 'mode'
flag is set.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190729162903.4489-3-dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
hw/core/machine.c
hw/display/virtio-gpu-pci.c
hw/display/virtio-vga.c
hw/virtio/virtio-crypto-pci.c
hw/virtio/virtio-input-pci.c
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h