xemu/hw/virtio
Dr. David Alan Gilbert 8fde73e138 Allow mismatched virtio config-len
Commit 'virtio: validate config_len on load' restricted config_len
loaded from the wire to match the config_len that the device had.

Unfortunately, there are cases where this isn't true, the one
we found it on was the wce addition in virtio-blk.

Allow mismatched config-lengths:
   *) If the version on the wire is shorter then fine
   *) If the version on the wire is longer, load what we have space
      for and skip the rest.

(This is mst@redhat.com's rework of what I originally posted)

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 2f5732e964)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-07-15 19:28:02 -05:00
..
dataplane virtio: clear signalled_used_valid when switching from dataplane 2013-08-12 12:19:04 +03:00
Makefile.objs virtio: Implement MMIO based virtio transport 2013-07-19 12:58:47 +01:00
vhost.c vhost: fix resource leak in error handling 2014-07-15 19:28:01 -05:00
virtio-balloon.c virtio-balloon: switch exit callback to VirtioDeviceClass 2014-02-20 21:36:15 -06:00
virtio-bus.c virtio-bus: cleanup plug/unplug interface 2014-02-20 21:36:15 -06:00
virtio-mmio.c virtio-bus: remove vdev field 2014-02-20 21:36:14 -06:00
virtio-pci.c virtio-pci: add device_unplugged callback 2014-02-20 21:36:15 -06:00
virtio-pci.h virtio-pci: remove vdev field 2014-02-20 21:36:15 -06:00
virtio-rng.c virtio-rng: switch exit callback to VirtioDeviceClass 2014-02-20 21:36:15 -06:00
virtio.c Allow mismatched virtio config-len 2014-07-15 19:28:02 -05:00