]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-exec.c
exec: make iotlb RCU-friendly
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Aug 2013 06:26:30 +0000 (08:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Feb 2015 16:30:19 +0000 (17:30 +0100)
commit9d82b5a792236db31a75b9db5c93af69ac07c7c5
tree95682ab6099e8e318102678fcba9cd2b62b9568c
parent76e5c76f2e2e0d20bab2cd5c7a87452f711654fb
exec: make iotlb RCU-friendly

After the previous patch, TLBs will be flushed on every change to
the memory mapping.  This patch augments that with synchronization
of the MemoryRegionSections referred to in the iotlb array.

With this change, it is guaranteed that iotlb_to_region will access
the correct memory map, even once the TLB will be accessed outside
the BQL.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpu-exec.c
cputlb.c
exec.c
include/exec/cputlb.h
include/exec/exec-all.h
include/qom/cpu.h
softmmu_template.h