]> xenbits.xensource.com Git - xen.git/commitdiff
p2m: use correct p2m_type_t in clear_mmio_p2m_entry
authorOlaf Hering <olaf@aepfle.de>
Thu, 6 Oct 2011 11:52:18 +0000 (12:52 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 6 Oct 2011 11:52:18 +0000 (12:52 +0100)
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.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c

index e9266e53228453397a4432370516e8f1b29e5032..21fa6818891fe5a14d7c0e6a7aa513038011d612 100644 (file)
@@ -628,7 +628,7 @@ clear_mmio_p2m_entry(struct domain *d, unsigned long gfn)
         return 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);