aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-09-06 13:36:51 +0300
committerMichael S. Tsirkin <mst@redhat.com>2016-09-09 20:58:34 +0300
commite3aab6c7f37a288452218ebdbfe39db41382495d (patch)
treee2ca0c793aa97e16fbe3fc7d5bc002e889ea1bb1 /hw/virtio
parenta8bba0ada41b228e4dd5113a02f20bbc0f5d6f0a (diff)
downloadqemu-e3aab6c7f37a288452218ebdbfe39db41382495d.zip
qemu-e3aab6c7f37a288452218ebdbfe39db41382495d.tar.gz
qemu-e3aab6c7f37a288452218ebdbfe39db41382495d.tar.bz2
virtio-pci: use size from correct structure
PIO MR registration should use size from the correct notify struct. Doesn't affect any visible behaviour because the field values are the same (both are 4). Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r--hw/virtio/virtio-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index 755f921..268fd8e 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -1520,7 +1520,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
&notify_pio_ops,
virtio_bus_get_device(&proxy->bus),
"virtio-pci-notify-pio",
- proxy->notify.size);
+ proxy->notify_pio.size);
}
static void virtio_pci_modern_region_map(VirtIOPCIProxy *proxy,