diff options
| author | Alexey Kardashevskiy | 2017-09-21 10:51:04 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2017-09-21 23:19:38 +0200 |
| commit | 967dc9b1194a9281124b2e1ce67b6c3359a2138f (patch) | |
| tree | c4a43ebddfafe78437e1b1fb7a0073132734eee2 /include/exec | |
| parent | memory: Move address_space_update_ioeventfds (diff) | |
| download | qemu-967dc9b1194a9281124b2e1ce67b6c3359a2138f.tar.gz qemu-967dc9b1194a9281124b2e1ce67b6c3359a2138f.tar.xz qemu-967dc9b1194a9281124b2e1ce67b6c3359a2138f.zip | |
memory: Share FlatView's and dispatch trees between address spaces
This allows sharing flat views between address spaces (AS) when
the same root memory region is used when creating a new address space.
This is done by walking through all ASes and caching one FlatView per
a physical root MR (i.e. not aliased).
This removes search for duplicates from address_space_init_shareable() as
FlatViews are shared elsewhere and keeping as::ref_count correct seems
an unnecessary and useless complication.
This should cause no change and memory use or boot time yet.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20170921085110.25598-13-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
