p2m: use correct p2m_type_t in clear_mmio_p2m_entry
PATCH 1/1 p2m: use correct p2m_type_t in clear_mmio_p2m_entry
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1317731210 -7200
# Node ID e77dd1bf489436d9f115be5d77327d1bbde1f1d2 # Parent 28556fcb81957a996b2c4b23a450cfefd95338b3
p2m: use correct p2m_type_t in clear_mmio_p2m_entry
clear_mmio_p2m_entry() should mark the gfn as invalid.
Use proper name instead of numerical value. The currently used value of zero means p2m_ram_rw.
xen/arch/x86/mm/p2m.c +1 -1
@@ -628,7 +628,7 @@ clear_mmio_p2m_entry(struct domain *d, ureturn 0 ; }p2m_lock (p2m); - rc =set_p2m_entry (p2m, gfn,_mfn (INVALID_MFN ),0 ,0 , p2m->default_access); + rc =set_p2m_entry (p2m, gfn,_mfn (INVALID_MFN ),0 , p2m_invalid, p2m->default_access);audit_p2m (p2m,1 );p2m_unlock (p2m);
Quoted 5 lines · Olaf Hering
p2m: use correct
p2m_type_tinclear_mmio_p2m_entry
clear_mmio_p2m_entry()should mark the gfn as invalid.
Use proper name instead of numerical value. The currently used value of zero meansp2m_ram_rw.
This bug is also in xen-4.1-testing.hg
Olaf
Quoted 7 lines · Olaf Hering
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1317731210 -7200
# Node IDe77dd1bf489436d9f115be5d77327d1bbde1f1d2# Parent28556fcb81957a996b2c4b23a450cfefd95338b3
p2m: use correctp2m_type_tinclear_mmio_p2m_entry
Quoted 5 lines
clear_mmio_p2m_entry()should mark the gfn as invalid.
Use proper name instead of numerical value. The currently used value of zero meansp2m_ram_rw.Signed-off-by Olaf Hering <[email protected]>
Applied, thanks, and backported to 4.1-testing
Tim.