From: Mukesh Rathor Date: Mon, 2 Jun 2014 08:31:49 +0000 (+0200) Subject: pvh dom0: allow get_pg_owner for translated domains if pvh X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4937 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=594e6fd413d646521cc29b38bc89f897b4570977;p=xen.git pvh dom0: allow get_pg_owner for translated domains if pvh When creating a PV guest, toolstack on pvh dom0 will do_mmuext_op to pin guest tables. do_mmuext_op calls get_pg_owner, which must allow foreign mappings for pvh. Signed-off-by: Mukesh Rathor --- diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index dd8d98c07a..2543916c68 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -2811,7 +2811,7 @@ static struct domain *get_pg_owner(domid_t domid) goto out; } - if ( unlikely(paging_mode_translate(curr)) ) + if ( !is_pvh_domain(curr) && unlikely(paging_mode_translate(curr)) ) { MEM_LOG("Cannot mix foreign mappings with translated domains"); goto out;