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-changelog

[Xen-changelog] [xen-unstable] [IA64] allow foreign domain page mapping

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] allow foreign domain page mapping of DOMID_XEN/DOMID_IO
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 09 Dec 2006 15:45:22 +0000
Delivery-date: Sat, 09 Dec 2006 07:48:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Node ID 45f79978ceb5e93f42dc610cc93ad79b0c63055b
# Parent  bc3044bf49284178fce0d6296b16ac31f2376368
[IA64] allow foreign domain page mapping of DOMID_XEN/DOMID_IO

DOMID_XEN is used by xenmon, xentrace.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/mm.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff -r bc3044bf4928 -r 45f79978ceb5 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Thu Dec 07 15:00:49 2006 -0700
+++ b/xen/arch/ia64/xen/mm.c    Thu Dec 07 15:02:37 2006 -0700
@@ -1295,11 +1295,13 @@ __dom0vp_add_physmap(struct domain* d, u
 
     if (unlikely(rd == d))
         goto out1;
-    if (is_gmfn) {
-        if (domid == DOMID_XEN || domid == DOMID_IO)
-            goto out1;
+    /*
+     * DOMID_XEN and DOMID_IO don't have their own p2m table.
+     * It can be considered that their p2m conversion is p==m.
+     */
+    if (likely(is_gmfn && domid != DOMID_XEN && domid != DOMID_IO))
         mfn = gmfn_to_mfn(rd, mfn_or_gmfn);
-    } else 
+    else 
         mfn = mfn_or_gmfn;
     if (unlikely(!mfn_valid(mfn) || get_page(mfn_to_page(mfn), rd) == 0))
         goto out1;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] allow foreign domain page mapping of DOMID_XEN/DOMID_IO, Xen patchbot-unstable <=