Message ID | 20090610104617.GJ6844@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 589fbb1..f657364 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -133,6 +133,8 @@ static int virtio_pci_load_config(void * opaque, QEMUFile *f) return ret; if (msix_present(&proxy->pci_dev)) qemu_get_be16s(f, &proxy->vdev->config_vector); + + pci_resize_io_region(&proxy->pci_dev, 1, msix_bar_size(&proxy->pci_dev)); return 0; }