msix: make [un]use vectors on reset/load optional
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Aug 2012 16:40:56 +0000 (19:40 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 29 Aug 2012 22:46:26 +0000 (17:46 -0500)
commit3cac001e5ae3c0ceb33e0a1978a48cb5e2482ab2
treedc6fdeb1cd4c497523ab7c3d5f1337d3cd84ac33
parentbc9a839d569d4d8532c5c097bf1f4583226e3aa0
msix: make [un]use vectors on reset/load optional

The facility to use/unuse vectors dynamically is helpful
for virtio but little else: everyone just seems to use
vectors in their init function.

Avoid clearing msix vector use info on reset and load.
For virtio, clear it explicitly.
This should fix regressions reported with ivshmem - though
I didn't test this, I verified that virtio keeps
working like it did.

Tested-by: Cam Macdonell <cam@cs.ualberta.ca>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/msix.c
hw/virtio-pci.c