qemu-e2k/hw/virtio
Alexey Kardashevskiy a93c8d828a virtio-pci: Replace modern_as with direct access to modern_bar
The modern bar is accessed now via yet another address space created just
for that purpose and it does not really need FlatView and dispatch tree
as it has a single memory region so it is just a waste of memory. Things
get even worse when there are dozens or hundreds of virtio-pci devices -
since these address spaces are global, changing any of them triggers
rebuilding all address spaces.

This replaces indirect accesses to the modern BAR with a simple lookup
and direct calls to memory_region_dispatch_read/write.

This is expected to save lots of memory at boot time after applying:
[Qemu-devel] [PULL 00/32] Misc changes for 2017-09-22

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-10-15 05:54:44 +03:00
..
Makefile.objs
trace-events
vhost-backend.c
vhost-stub.c
vhost-user.c
vhost-vsock.c
vhost.c virtio/vhost: reset dev->log after syncing 2017-10-15 05:54:41 +03:00
virtio-balloon.c
virtio-bus.c
virtio-crypto-pci.c
virtio-crypto.c
virtio-mmio.c
virtio-pci.c virtio-pci: Replace modern_as with direct access to modern_bar 2017-10-15 05:54:44 +03:00
virtio-pci.h virtio-pci: Replace modern_as with direct access to modern_bar 2017-10-15 05:54:44 +03:00
virtio-rng.c
virtio.c virtio: fix descriptor counting in virtqueue_pop 2017-10-15 05:54:44 +03:00