aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/emulate.c
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2012-03-15 11:41:11 +0000
committerTim Deegan <tim@xen.org>2012-03-15 11:41:11 +0000
commit923d946a0db1e1f6c2523c5d2e210f7ddd7a33af (patch)
tree916d4517d883117421ead123450f3fbbbdcb394a /xen/arch/x86/hvm/emulate.c
parent2daf35021672e3e94341a8f6c929df68cb10dbf1 (diff)
downloadxen-923d946a0db1e1f6c2523c5d2e210f7ddd7a33af.tar.gz
xen-923d946a0db1e1f6c2523c5d2e210f7ddd7a33af.tar.bz2
xen-923d946a0db1e1f6c2523c5d2e210f7ddd7a33af.zip
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>
Diffstat (limited to 'xen/arch/x86/hvm/emulate.c')
-rw-r--r--xen/arch/x86/hvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
index d661bb5dd3..362f351599 100644
--- a/xen/arch/x86/hvm/emulate.c
+++ b/xen/arch/x86/hvm/emulate.c
@@ -716,7 +716,7 @@ static int hvmemul_rep_movs(
get_two_gfns(current->domain, sgpa >> PAGE_SHIFT, &sp2mt, NULL, NULL,
current->domain, dgpa >> PAGE_SHIFT, &dp2mt, NULL, NULL,
- p2m_guest, &tg);
+ p2m_alloc, &tg);
if ( !p2m_is_ram(sp2mt) && !p2m_is_grant(sp2mt) )
{