Dr. David Alan Gilbert 2f5732e964 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>
2014-06-29 18:59:41 +03:00
..
2014-06-23 11:12:28 -04:00
2014-06-23 11:01:24 -04:00
2014-06-27 11:19:31 +02:00
2014-06-20 16:22:07 +01:00
2014-06-23 11:01:25 -04:00
2014-06-24 20:01:24 +04:00
2014-06-27 13:48:26 +02:00
2014-06-19 18:44:22 +03:00
2014-06-20 23:40:16 +02:00
2014-06-27 13:48:23 +02:00
2014-06-27 13:48:22 +02:00
2014-06-23 17:49:49 +03:00
2014-06-27 13:48:24 +02:00
2014-06-23 11:01:25 -04:00
2014-06-29 18:59:41 +03:00
2014-06-27 09:27:56 -04:00