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>
This commit is contained in:
parent
23c5e39775
commit
4e93a68eb3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user