From: Jan Beulich Date: Wed, 17 Jul 2019 13:33:05 +0000 (+0200) Subject: x86/PV: drop page table ownership check from emul-priv-op.c:read_cr() X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1926 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7c5696ad0bab744bb2c6ad688816447da01a30d8;p=xen.git x86/PV: drop page table ownership check from emul-priv-op.c:read_cr() We have such a check here but no-where else. It shouldn't have been added by af909e7e16 ("M2P translation cannot be handled through flat table with") in the first place. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/pv/emul-priv-op.c b/xen/arch/x86/pv/emul-priv-op.c index dde85a5166..ba63315306 100644 --- a/xen/arch/x86/pv/emul-priv-op.c +++ b/xen/arch/x86/pv/emul-priv-op.c @@ -723,8 +723,7 @@ static int read_cr(unsigned int reg, unsigned long *val, unmap_domain_page(pl4e); *val = compat_pfn_to_cr3(mfn_to_gmfn(currd, mfn_x(mfn))); } - /* PTs should not be shared */ - BUG_ON(page_get_owner(mfn_to_page(mfn)) == dom_cow); + return X86EMUL_OKAY; } }