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-ia64-devel

[Xen-ia64-devel] [PATCH] ia64 fix for cset 8736

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxx>
Subject: [Xen-ia64-devel] [PATCH] ia64 fix for cset 8736
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Thu, 02 Feb 2006 14:54:08 -0700
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 02 Feb 2006 22:04:11 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: LOSL
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
   The patch below gets ia64 working again on xen-unstable after cset
8736.  Dan, you might want to look over the rest of 8736 and make sure I
didn't miss anything else we should clean up in the ia64 tree.  Thanks,

        Alex

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---

--- a/xen/arch/ia64/xen/dom0_ops.c      Thu Feb  2 13:57:18 2006
+++ b/xen/arch/ia64/xen/dom0_ops.c      Thu Feb  2 08:45:12 2006
@@ -30,17 +30,17 @@
     case DOM0_GETPAGEFRAMEINFO:
     {
         struct page_info *page;
-        unsigned long pfn = op->u.getpageframeinfo.pfn;
+        unsigned long mfn = op->u.getpageframeinfo.mfn;
         domid_t dom = op->u.getpageframeinfo.domain;
         struct domain *d;
 
         ret = -EINVAL;
 
-        if ( unlikely(pfn >= max_page) || 
+        if ( unlikely(!mfn_valid(mfn)) || 
              unlikely((d = find_domain_by_id(dom)) == NULL) )
             break;
 
-        page = &frame_table[pfn];
+        page = &frame_table[mfn];
 
         if ( likely(get_page(page, d)) )
         {
@@ -158,7 +158,7 @@
         struct domain *d = find_domain_by_id(op->u.getmemlist.domain);
         unsigned long start_page = op->u.getmemlist.max_pfns >> 32;
         unsigned long nr_pages = op->u.getmemlist.max_pfns & 0xffffffff;
-        unsigned long pfn;
+        unsigned long mfn;
         unsigned long *buffer = op->u.getmemlist.buffer;
         struct page *page;
 
@@ -177,9 +177,9 @@
 
             for ( i = start_page; i < (start_page + nr_pages); i++ )
             {
-               pfn = gmfn_to_mfn_foreign(d, i);
-
-                if ( put_user(pfn, buffer) )
+               mfn = gmfn_to_mfn_foreign(d, i);
+
+                if ( put_user(mfn, buffer) )
                 {
                     ret = -EFAULT;
                     break;



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] ia64 fix for cset 8736, Alex Williamson <=