diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-04 12:34:29 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-10 18:15:05 +0200 |
commit | 4e93a68eb369b2f7adbef7a4f6afd7a30a0ed927 (patch) | |
tree | 4378e5b78fdc4755bd013af3b7f0c516cd61b50d /hw/virtio | |
parent | 23c5e3977502a1b57fa2d8cf8cf4b5c9e45f0d1f (diff) | |
download | hqemu-4e93a68eb369b2f7adbef7a4f6afd7a30a0ed927.zip hqemu-4e93a68eb369b2f7adbef7a4f6afd7a30a0ed927.tar.gz |
virtio-pci: make modern bar 64bit + prefetchable
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio-pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 16d6e69..7804361 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -1344,7 +1344,9 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp) VIRTIO_QUEUE_MAX); memory_region_add_subregion(&proxy->modern_bar, 0x3000, &proxy->notify); pci_register_bar(&proxy->pci_dev, modern_mem_bar, - PCI_BASE_ADDRESS_SPACE_MEMORY, + PCI_BASE_ADDRESS_SPACE_MEMORY | + PCI_BASE_ADDRESS_MEM_PREFETCH | + PCI_BASE_ADDRESS_MEM_TYPE_64, &proxy->modern_bar); } |