mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/paging: don't unconditionally BUG() on finding SHARED_M2P_ENTRY
PV guests can fully control the values written into the P2M. This is XSA-251. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
10be8001de
commit
b4d0218cff
1 file changed
+1
-1
@@ -274,7 +274,7 @@ void paging_mark_pfn_dirty(struct domain *d, pfn_t pfn)
|
||||
return;
|
||||
|
||||
/* Shared MFNs should NEVER be marked dirty */
|
||||
BUG_ON(SHARED_M2P(pfn_x(pfn)));
|
||||
BUG_ON(paging_mode_translate(d) && SHARED_M2P(pfn_x(pfn)));
|
||||
|
||||
/*
|
||||
* Values with the MSB set denote MFNs that aren't really part of the
|
||||
|
||||