Re: [Qemu-devel] [PATCH 03/30] memory: add reference counting to FlatView

2013-06-28 Thread Anthony Liguori
Paolo Bonzini writes: > With this change, a FlatView can be used even after a concurrent > update has replaced it. Because we do not have RCU, we use a > mutex to protect the small critical sections that read/write the > as->current_map pointer. Accesses to the FlatView can be done > outside th

[Qemu-devel] [PATCH 03/30] memory: add reference counting to FlatView

2013-06-28 Thread Paolo Bonzini
With this change, a FlatView can be used even after a concurrent update has replaced it. Because we do not have RCU, we use a mutex to protect the small critical sections that read/write the as->current_map pointer. Accesses to the FlatView can be done outside the mutex. If a MemoryRegion will b