diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2015-01-21 12:09:14 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-02-16 17:30:19 +0100 |
| commit | 79e2b9aeccedbfde762b05da662132c7fda292be (patch) | |
| tree | bf4d111dcb48864e149d2414dde293bdf92b0ef4 /cputlb.c | |
| parent | 9d82b5a792236db31a75b9db5c93af69ac07c7c5 (diff) | |
| download | focaccia-qemu-79e2b9aeccedbfde762b05da662132c7fda292be.tar.gz focaccia-qemu-79e2b9aeccedbfde762b05da662132c7fda292be.zip | |
exec: RCUify AddressSpaceDispatch
Note that even after this patch, most callers of address_space_* functions must still be under the big QEMU lock, otherwise the memory region returned by address_space_translate can disappear as soon as address_space_translate returns. This will be fixed in the next part of this series. Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cputlb.c')
| -rw-r--r-- | cputlb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cputlb.c b/cputlb.c index f92db5e183..38f2151166 100644 --- a/cputlb.c +++ b/cputlb.c @@ -243,8 +243,12 @@ static void tlb_add_large_page(CPUArchState *env, target_ulong vaddr, } /* Add a new TLB entry. At most one entry for a given virtual address - is permitted. Only a single TARGET_PAGE_SIZE region is mapped, the - supplied size is only used by tlb_flush_page. */ + * is permitted. Only a single TARGET_PAGE_SIZE region is mapped, the + * supplied size is only used by tlb_flush_page. + * + * Called from TCG-generated code, which is under an RCU read-side + * critical section. + */ void tlb_set_page(CPUState *cpu, target_ulong vaddr, hwaddr paddr, int prot, int mmu_idx, target_ulong size) |