aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-pci.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-20 15:35:55 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-20 15:35:55 +0000
commit5e520a7d500ec2569d22d80f9ef4272a34cb3c80 (patch)
tree0d9b2ad946225fadf44d44a2a9175c53a45229e6 /hw/virtio-pci.c
parentca20cf32ab3d945155141ef737f5d08ebb373e1d (diff)
Compile msix only once
Get page size in device init. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/virtio-pci.c')
-rw-r--r--hw/virtio-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index f7a51ff761..bd5a7c4d3a 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -411,7 +411,8 @@ static void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
config[0x3d] = 1;
- if (vdev->nvectors && !msix_init(&proxy->pci_dev, vdev->nvectors, 1, 0)) {
+ if (vdev->nvectors && !msix_init(&proxy->pci_dev, vdev->nvectors, 1, 0,
+ TARGET_PAGE_SIZE)) {
pci_register_bar(&proxy->pci_dev, 1,
msix_bar_size(&proxy->pci_dev),
PCI_ADDRESS_SPACE_MEM,