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] fix compilation error caused by 19286:dd489125a2e7

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix compilation error caused by 19286:dd489125a2e7
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 9 Mar 2009 11:45:06 +0900
Cc: shane.wang@xxxxxxxxx, yunhong.jiang@xxxxxxxxx
Delivery-date: Sun, 08 Mar 2009 19:45:32 -0700
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: Mutt/1.5.6i
[IA64] fix compilation error caused by 19286:dd489125a2e7

This patch fixes compilation error caused by 19286:dd489125a2e7

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/xen/arch/ia64/xen/xensetup.c b/xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c
+++ b/xen/arch/ia64/xen/xensetup.c
@@ -337,6 +337,8 @@ is_platform_hp_ski(void)
 static int __initdata dom0_vhpt_size_log2;
 integer_param("dom0_vhpt_size_log2", dom0_vhpt_size_log2);
 #endif
+unsigned long xen_fixed_mfn_start __read_mostly;
+unsigned long xen_fixed_mfn_end __read_mostly;
 
 void __init start_kernel(void)
 {
@@ -556,6 +558,10 @@ skip_move:
            (xenheap_phys_end-__pa(xen_heap_start)) >> 20,
            (xenheap_phys_end-__pa(xen_heap_start)) >> 10);
 
+    /* for is_xen_fixed_mfn() */
+    xen_fixed_mfn_start = virt_to_mfn(&_start);
+    xen_fixed_mfn_end = virt_to_mfn(xen_heap_start);
+
     end_boot_allocator();
 
     softirq_init();
diff --git a/xen/include/asm-ia64/mm.h b/xen/include/asm-ia64/mm.h
--- a/xen/include/asm-ia64/mm.h
+++ b/xen/include/asm-ia64/mm.h
@@ -149,13 +149,34 @@ page_list_splice_init(struct page_list_h
 # define PGC_xen_heap     PG_mask(1, 2)
  /* bit PG_shift(3) reserved. See asm-x86/mm.h */
  /* PG_mask(7, 6) reserved. See asm-x86/mm.h*/
+
+ /* Page is broken? */
+#define _PGC_broken       PG_shift(7)
+#define PGC_broken        PG_mask(1, 7)
+ /* Page is offline pending ? */
+#define _PGC_offlining    PG_shift(8)
+#define PGC_offlining     PG_mask(1, 8)
+ /* Page is offlined */
+#define _PGC_offlined     PG_shift(9)
+#define PGC_offlined      PG_mask(1, 9)
+#define PGC_offlined_broken (PGC_offlined | PGC_broken)
+
+#define is_page_offlining(page) ((page)->count_info & PGC_offlining)
+#define is_page_offlined(page)  ((page)->count_info & PGC_offlined)
+#define is_page_broken(page)    ((page)->count_info & PGC_broken)
+#define is_page_online(page)    (!is_page_offlined(page))
+
  /* Count of references to this frame. */
-#define PGC_count_width   PG_shift(6)
+#define PGC_count_width   PG_shift(9)
 #define PGC_count_mask    ((1UL<<PGC_count_width)-1)
 
+extern unsigned long xen_fixed_mfn_start;
+extern unsigned long xen_fixed_mfn_end;
 #define is_xen_heap_page(page)  ((page)->count_info & PGC_xen_heap)
 #define is_xen_heap_mfn(mfn)    (mfn_valid(mfn) &&                      \
                                  is_xen_heap_page(mfn_to_page(mfn)))
+#define is_xen_fixed_mfn(mfn)                                           \
+    (xen_fixed_mfn_start <= (mfn) && (mfn) <= xen_fixed_mfn_end)
 
 #ifdef CONFIG_IA64_PICKLE_DOMAIN
 #define page_get_owner(_p)                                              \


-- 
yamahata

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

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