summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Xu2019-03-13 10:43:23 +0100
committerPaolo Bonzini2019-03-20 11:44:13 +0100
commit4b519ef1de9a7cb8123abadab9e6c5697373087c (patch)
tree2c12938a5b20a2f6fc7c5d1e33f7aa43e5156ec5 /scripts
parenttest-announce-self: convert to qgraph (diff)
downloadqemu-4b519ef1de9a7cb8123abadab9e6c5697373087c.tar.gz
qemu-4b519ef1de9a7cb8123abadab9e6c5697373087c.tar.xz
qemu-4b519ef1de9a7cb8123abadab9e6c5697373087c.zip
intel-iommu: optimize nodmar memory regions
Previously we have per-device system memory aliases when DMAR is disabled by the system. It will slow the system down if there are lots of devices especially when DMAR is disabled, because each of the aliased system address space will contain O(N) slots, and rendering such N address spaces will be O(N^2) complexity. This patch introduces a shared nodmar memory region and for each device we only create an alias to the shared memory region. With the aliasing, QEMU memory core API will be able to detect when devices are sharing the same address space (which is the nodmar address space) when rendering the FlatViews and the total number of FlatViews can be dramatically reduced when there are a lot of devices. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20190313094323.18263-1-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions