virtio: sanity-check available index
commit258dc7c96bb4b7ca71d5bee811e73933310e168c
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 17 Oct 2010 18:23:48 +0000 (17 20:23 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 16:54:02 +0000 (27 18:54 +0200)
tree6db0801f8457e0e5930c7b7f94ba1c142980b2d8
parent492fb99c4bef274a71178f5fab9b700c469a4230
virtio: sanity-check available index

Checking available index upon load instead of
only when vm is running makes is easier to
debug failures.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio.c