x86/mm: remove 'p2m_guest' lookup type.
authorTim Deegan <tim@xen.org>
Thu, 15 Mar 2012 11:41:11 +0000 (11:41 +0000)
committerTim Deegan <tim@xen.org>
Thu, 15 Mar 2012 11:41:11 +0000 (11:41 +0000)
commit923d946a0db1e1f6c2523c5d2e210f7ddd7a33af
tree916d4517d883117421ead123450f3fbbbdcb394a
parent2daf35021672e3e94341a8f6c929df68cb10dbf1
x86/mm: remove 'p2m_guest' lookup type.

It was neither consistently used by callers nor correctly handled by the
lookup code.  Instead, treat any lookup that might allocate or unshare
memory as a 'guest' lookup for the purposes of:
 - detecting the highest pod gfn populated; and
 - crashing the guest on access to a broken page
which were the only things this was used for.

Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/types.h
xen/include/asm-x86/p2m.h