WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] p2m: use correct p2m_type_t in clear_mmio_p2m_entry

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] p2m: use correct p2m_type_t in clear_mmio_p2m_entry
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 04 Oct 2011 14:27:19 +0200
Delivery-date: Tue, 04 Oct 2011 05:28:15 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1317731259; l=865; s=domk; d=aepfle.de; h=To:From:Date:Subject:Content-Transfer-Encoding:MIME-Version: Content-Type:X-RZG-CLASS-ID:X-RZG-AUTH; bh=xULyXDarNDsG3bnw4QR6keaoxkE=; b=v89KEakGMmVWTHAAqjqaLmNrjgOaTUrP0KhR3VvfPrunb7YF4BixUFJ5XhTzvM0Njtt e+vXoISf6lRhCGBdDfCVWCatt+aJIEHPTui+P9NZiAVcN3B91a1GRDTW/RAOTOonXI4wI mZRi0MJ41YBu45iHkvECQSOqFBxnhwNgu24=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# 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.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 28556fcb8195 -r e77dd1bf4894 xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c
+++ b/xen/arch/x86/mm/p2m.c
@@ -628,7 +628,7 @@ clear_mmio_p2m_entry(struct domain *d, u
         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);
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>