]> xenbits.xensource.com Git - xen.git/commitdiff
x86/PV: drop page table ownership check from emul-priv-op.c:read_cr()
authorJan Beulich <jbeulich@suse.com>
Wed, 17 Jul 2019 13:33:05 +0000 (15:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 17 Jul 2019 13:33:05 +0000 (15:33 +0200)
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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/emul-priv-op.c

index dde85a5166a7fde8622979ceb1b39e98759fb0f0..ba63315306af052007d1d9ab3869165b5ae7f8e6 100644 (file)
@@ -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;
     }
     }