• A
    memory: Move AddressSpaceDispatch from AddressSpace to FlatView · 66a6df1d
    Alexey Kardashevskiy 提交于
    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: NAlexey Kardashevskiy <aik@ozlabs.ru>
    Message-Id: <20170921085110.25598-5-aik@ozlabs.ru>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    66a6df1d
exec.c 102.4 KB