qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH qemu] exec: Destroy dispatch immediately


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC PATCH qemu] exec: Destroy dispatch immediately
Date: Fri, 25 Aug 2017 10:22:58 +0100

On 25 August 2017 at 09:53, Paolo Bonzini <address@hidden> wrote:
> The solution is to: 1) share the FlatView structures if they refer to
> the same root memory region; 2) have one AddressSpaceDispatch per
> FlatView instead of one per AddressSpace, so that FlatView reference
> counting takes care of clearing the AddressSpaceDispatch too.  Neither
> is particularly hard.

If we did this we could get rid of address_space_init_shareable(),
right? (It's a bit of a cheesy hack aimed at avoiding having duplicate
address space structures for the same root memory region, but if
the underlying code is better at not duplicating all the data
structures unless necessary then the benefit of having the
separate API goes away I think.)

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]