x86/mm: make 'query type' argument to get_gfn into a set of flags
authorTim Deegan <tim@xen.org>
Thu, 15 Mar 2012 11:46:54 +0000 (11:46 +0000)
committerTim Deegan <tim@xen.org>
Thu, 15 Mar 2012 11:46:54 +0000 (11:46 +0000)
commit5125dc02d9fb1fd2177aea8af7e1b3b7873357d6
tree40bef0d693c30c9668e38392ff2da0088161773f
parent923d946a0db1e1f6c2523c5d2e210f7ddd7a33af
x86/mm: make 'query type' argument to get_gfn into a set of flags

Having an enum for this won't work if we want to add any orthogonal
options to it -- the existing code is only correct (after the removal of
p2m_guest in the previous patch) because there are no tests anywhere for
'== p2m_alloc', only for '!= p2m_query' and '== p2m_unshare'.

Replace it with a set of flags.

Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
14 files changed:
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.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_sharing.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/shadow/types.h
xen/include/asm-x86/guest_pt.h
xen/include/asm-x86/p2m.h