]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: Move AddressSpaceDispatch from AddressSpace to FlatView
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Sep 2017 08:50:56 +0000 (18:50 +1000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 5 Dec 2017 03:54:59 +0000 (21:54 -0600)
commit4d2f8abb22ace8e43f4d8ffc03431292210c9de6
treea46a71304a17b6549fdd3d017b56c1bad000a8a6
parentde7e6815b84c797cbda56dc96fcacaf5f37d3a20
memory: Move AddressSpaceDispatch from AddressSpace to FlatView

As we are going to share FlatView's between AddressSpace's,
and AddressSpaceDispatch is a structure to perform quick lookup
in FlatView, this moves ASD to FlatView.

After previosly open coded ASD rendering, we can also remove
as->next_dispatch as the new FlatView pointer is stored
on a stack and set to an AS atomically.

flatview_destroy() is executed under RCU instead of
address_space_dispatch_free() now.

This makes mem_begin/mem_commit to work with ASD and mem_add with FV
as later on mem_add will be taking FV as an argument anyway.

This should cause no behavioural change.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20170921085110.25598-5-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 66a6df1dc6d5b28cc3e65db0d71683fbdddc6b62)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
exec.c
include/exec/memory-internal.h
include/exec/memory.h
memory.c