Il 16/08/2013 16:41, Mike Day ha scritto: > This patch set merges Paolo's conversion of address spaces to enable > RCU. There is one more patchset coming for TLB access that I'm > debugging right now. After I submit the last one I'll start working on > enabling RCU more widely - and the series will need to be refactored. > > The series is availale online at: > > https://github.com/ncultra/qemu/tree/rcu-for-1.7 > > Mike Day (2): > fixup changes from commit f63ca950 > fixup changes from commit f62a6b2f from Paulo Bonzini > > Paolo Bonzini (1): > exec: change iotlb APIs to take AddressSpaceDispatch > > aio-posix.c | 1 + > aio-win32.c | 1 + > cpus.c | 3 +++ > cputlb.c | 7 ++++--- > exec.c | 13 ++++++++----- > include/exec/cpu-all.h | 3 +++ > include/exec/cputlb.h | 9 ++++++--- > 7 files changed, 26 insertions(+), 11 deletions(-) >
Thanks Mike! I think iotlb APIs can be made RCU-friendly by: 1) storing an AddressSpaceDispatch in the CPUArchState (which iotlb_to_region can then use); 2) doing tcg_commit's TLB flush in the VCPU thread. I'll pick up your changes and post the RCU patches in a few weeks. Paolo