]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
x86/PVH: Fix debug build following XSA-378 bugfix
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 8 Sep 2021 15:39:42 +0000 (17:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Sep 2021 15:39:42 +0000 (17:39 +0200)
Fixes: 8d8b4bde3e1c ("x86/PVH: de-duplicate mappings for first Mb of Dom0 memory")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/dom0_build.c

index 62958bf82cbe179b7672b259340dc939c5e2c9b0..c6eb86bfb7eeebc54183710792a0233a696e1c7c 100644 (file)
@@ -467,7 +467,7 @@ static int __init pvh_populate_p2m(struct domain *d)
         p2m_type_t p2mt;
 
         if ( mfn_eq(get_gfn_query(d, i, &p2mt), INVALID_MFN) )
-            rc = set_mmio_p2m_entry(d, _gfn(i), _mfn(i), PAGE_ORDER_4K,
+            rc = set_mmio_p2m_entry(d, i, _mfn(i), PAGE_ORDER_4K,
                                     p2m_get_hostp2m(d)->default_access);
         else
             ASSERT(p2mt == p2m_ram_rw);