Skip to contentSkip to conversation

x86/PVH: Fix build following XSA-378 bugfix

PATCH In review Andrew Cooper 2 participants 2 messages Sep 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/PVH: Fix build following XSA-378 bugfix

Fixes 8d8b4bde3e1c ("x86/PVH: de-duplicate mappings for first Mb of Dom0 memory")

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>

---
 xen/arch/x86/hvm/dom0_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/hvm/dom0_build.c +1 -1
index 62958bf82cbe..c6eb86bfb7ee 100644
@@ -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);
Signature · 1 line
2.11.0