qemu/hw/virtio
Cornelia Huck 11380b3619 virtio: handle non-virtio-1-capable backend for ccw
If you run a qemu advertising VERSION_1 with an old kernel where
vhost did not yet support VERSION_1, you'll end up with a device
that is {modern pci|ccw revision 1} but does not advertise VERSION_1.
This is not a sensible configuration and is rejected by the Linux
guest drivers.

To fix this, add a ->post_plugged() callback invoked after features
have been queried that can handle the VERSION_1 bit being withdrawn
and change ccw to fall back to revision 0 if VERSION_1 is gone.

Note that pci is _not_ fixed; we'll need to rethink the approach
for the next release but at least for pci it's not a regression.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2015-12-02 19:34:11 +02:00
..
dataplane dataplane: support non-contigious s/g 2015-11-09 09:59:32 +00:00
Makefile.objs dataplane: endianness-aware accesses 2015-02-16 15:07:16 +00:00
vhost-backend.c vhost: rename RESET_DEVICE backto RESET_OWNER 2015-11-12 15:49:33 +02:00
vhost-user.c vhost-user: fix log size 2015-11-18 18:49:27 +02:00
vhost.c Revert "vhost: send SET_VRING_ENABLE at start/stop" 2015-11-26 12:02:11 +02:00
virtio-balloon.c Inhibit ballooning during postcopy 2015-11-10 15:00:28 +01:00
virtio-bus.c virtio: handle non-virtio-1-capable backend for ccw 2015-12-02 19:34:11 +02:00
virtio-mmio.c virtio: allow virtio-1 queue layout 2015-06-10 18:15:04 +02:00
virtio-pci.c hw/virtio: Add PCIe capability to virtio devices 2015-11-12 16:23:16 +02:00
virtio-pci.h hw/virtio: Add PCIe capability to virtio devices 2015-11-12 16:23:16 +02:00
virtio-rng.c virtio: get_features() can fail 2015-07-27 18:11:53 +03:00
virtio.c virtio-pci: fix 1.0 virtqueue migration 2015-11-12 15:49:32 +02:00