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