3ab5d775a1
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=4293852b248e1f267831a4305b1c05a9
25 lines
760 B
Diff
25 lines
760 B
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# Date 1277917902 -3600
|
|
# Node ID 7cda3ad44c6d4e799e65b2ffe21e609f50cdb94b
|
|
# Parent 81d6471ff1235fde2c30428b920cb6e00ba546d6
|
|
Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing P2M types
|
|
|
|
Use gfn_to_mfn_query() rather then gfn_to_mfn() when changing
|
|
P2M types since we do not really want to force a PoD allocation
|
|
as a side effect.
|
|
|
|
Signed-off-by: Paul Durrant <Paul.Durrant@citrix.com>
|
|
|
|
--- a/xen/arch/x86/mm/p2m.c
|
|
+++ b/xen/arch/x86/mm/p2m.c
|
|
@@ -2351,7 +2351,7 @@ p2m_type_t p2m_change_type(struct domain
|
|
|
|
p2m_lock(d->arch.p2m);
|
|
|
|
- mfn = gfn_to_mfn(d, gfn, &pt);
|
|
+ mfn = gfn_to_mfn_query(d, gfn, &pt);
|
|
if ( pt == ot )
|
|
set_p2m_entry(d, gfn, mfn, 0, nt);
|
|
|