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/
Home Products Support Community News


[Xen-devel] Fix a typo in p2m.c

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Fix a typo in p2m.c
From: "Huang2, Wei" <Wei.Huang2@xxxxxxx>
Date: Thu, 10 Apr 2008 10:06:06 -0500
Delivery-date: Thu, 10 Apr 2008 08:07:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47FE2AE1.4020404@xxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <47FAF285.10103@xxxxxxx> <47FBE3CF.4000107@xxxxxxxx><47FD942C.5040503@xxxxxxx> <47FE1DB6.6050707@xxxxxxxx><1207836684.16779.8.camel@muff><3883AEC7-3636-4809-8516-8870C1B9C7C4@xxxxxxx> <47FE2AE1.4020404@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcibG2E+fRRhI//BQDapbuKBaW27SwAAGnjg
Thread-topic: Fix a typo in p2m.c
This is a fix to typo in p2m.c. Courtesy to Xiao Wang
(sirouni@xxxxxxxxxxxx) for pointing out this bug.

diff -r 8d750b7acfa3 xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c     Thu Apr 10 11:11:25 2008 +0100
+++ b/xen/arch/x86/mm/p2m.c     Thu Apr 10 04:13:59 2008 -0500
@@ -941,7 +941,7 @@ void p2m_change_type_global(struct domai
                     mfn = l1e_get_pfn(l1e[i1]);
                     gfn = get_gpfn_from_mfn(mfn);
                     /* create a new 1le entry with the new type */
-                    flags = p2m_flags_to_type(nt);
+                    flags = p2m_type_to_flags(nt);
                     l1e_content = l1e_from_pfn(mfn, flags);
                     paging_write_p2m_entry(d, gfn, &l1e[i1],
                                            l1mfn, l1e_content, 1);

Xen-devel mailing list