From 7c5696ad0bab744bb2c6ad688816447da01a30d8 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 17 Jul 2019 15:33:05 +0200 Subject: [PATCH] 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 --- xen/arch/x86/pv/emul-priv-op.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } } -- 2.30.2