From 44b9823202da79682230195f898ff0a54ca1fe31 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Fri, 26 Feb 2016 10:55:11 +0100 Subject: [PATCH 8/8] xen/mm: remove the aliasing gfn -> mfn limitation This is a hack. --- xen/arch/x86/mm/p2m.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 8b8001e..16e84b5 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -566,7 +566,7 @@ guest_physmap_add_entry(struct domain *d, unsigned long gfn, p2m_type_t t) { struct p2m_domain *p2m = p2m_get_hostp2m(d); - unsigned long i, ogfn; + unsigned long i/*, ogfn*/; p2m_type_t ot; p2m_access_t a; mfn_t omfn; @@ -655,6 +655,7 @@ guest_physmap_add_entry(struct domain *d, unsigned long gfn, } } +#if 0 /* Then, look for m->p mappings for this range and deal with them */ for ( i = 0; i < (1UL << page_order); i++ ) { @@ -686,6 +687,7 @@ guest_physmap_add_entry(struct domain *d, unsigned long gfn, } } } +#endif /* Now, actually do the two-way mapping */ if ( mfn_valid(_mfn(mfn)) ) -- 2.5.4 (Apple Git-61)