]> xenbits.xensource.com Git - xen.git/commit
Modify naming of queries into the p2m
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Fri, 11 Nov 2011 18:11:34 +0000 (18:11 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Fri, 11 Nov 2011 18:11:34 +0000 (18:11 +0000)
commit51032ca058e43fbd37ea1f7c7c003496f6451340
tree179fda9e3eba652562ca7aa3e6139852cbe3ed23
parente0594d9bc1c7996840f421a4084830d5a296e51b
Modify naming of queries into the p2m

Callers of lookups into the p2m code are now variants of get_gfn. All
callers need to call put_gfn. The code behind it is a no-op at the
moment, but will change to proper locking in a later patch.

This patch does not change functionality. Only naming, and adds
put_gfn's.

set_p2m_entry retains its name because it is always called with
p2m_lock held.

This patch is humongous, unfortunately, given the dozens of call sites
involved.

After this patch, anyone using old style gfn_to_mfn will not succeed
in compiling their code. This is on purpose: adapt to the new API.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Keir Fraser <keir@xen.org>
32 files changed:
xen/arch/x86/cpu/mcheck/vmce.c
xen/arch/x86/debug.c
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/mtrr.c
xen/arch/x86/hvm/stdvga.c
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/viridian.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/arch/x86/mm.c
xen/arch/x86/mm/guest_walk.c
xen/arch/x86/mm/hap/guest_walk.c
xen/arch/x86/mm/hap/nested_hap.c
xen/arch/x86/mm/mem_event.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/types.h
xen/arch/x86/physdev.c
xen/arch/x86/traps.c
xen/common/grant_table.c
xen/common/memory.c
xen/common/tmem_xen.c
xen/include/asm-ia64/mm.h
xen/include/asm-x86/guest_pt.h
xen/include/asm-x86/p2m.h