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

Re: [Xen-ia64-devel] [PATCH] sparse tree cleanups

To: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] sparse tree cleanups
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Wed, 07 Jun 2006 15:08:37 +0900
Delivery-date: Tue, 06 Jun 2006 23:11:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1149625245.5877.57.camel@lappy>
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>
References: <1149625245.5877.57.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Alex

I agree your suggestion.
But your patch use ifdef CONFIG_XEN.
You say we use "simple is_running_on_xen() checks", aren't you?
Is this mistake? or do I mis-understand?

I want to clean up mm/memory.c.
(This work is for cleanup fedora-xen's warning.)
I should use is_running_on_xen() in mm/memory.c, shouldn't I?

diff -r 4e78528e3480 linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c
--- a/linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c  Tue Jun 06 09:11:25 
2006 -0600
+++ b/linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c  Tue Jun 06 14:08:35 
2006 -0600
@@ -66,11 +66,13 @@ assign_irq_vector (int irq)
 assign_irq_vector (int irq)
 {
        int pos, vector;
-#ifdef CONFIG_XEN
-       extern int xen_assign_irq_vector(int);
-       if (is_running_on_xen())
+
+#ifdef CONFIG_XEN
+       if (is_running_on_xen()) {
+               extern int xen_assign_irq_vector(int);
                return xen_assign_irq_vector(irq);
-#endif /* CONFIG_XEN */
+       }
+#endif
  again:
        pos = find_first_zero_bit(ia64_vector_mask, IA64_NUM_DEVICE_VECTORS);
        vector = IA64_FIRST_DEVICE_VECTOR + pos;
diff -r 4e78528e3480 linux-2.6-xen-sparse/arch/ia64/kernel/setup.c
--- a/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c     Tue Jun 06 09:11:25 
2006 -0600
+++ b/linux-2.6-xen-sparse/arch/ia64/kernel/setup.c     Tue Jun 06 14:08:35 
2006 -0600
@@ -416,6 +416,7 @@ setup_arch (char **cmdline_p)
 setup_arch (char **cmdline_p)
 {
        unw_init();
+
 #ifdef CONFIG_XEN
        if (is_running_on_xen())
                setup_xen_features();
@@ -933,6 +934,7 @@ cpu_init (void)
        /* size of physical stacked register partition plus 8 bytes: */
        __get_cpu_var(ia64_phys_stacked_size_p8) = num_phys_stacked*8 + 8;
        platform_cpu_init();
+
 #ifdef CONFIG_XEN
        /* Need to be moved into platform_cpu_init later */
        if (is_running_on_xen()) {
@@ -940,6 +942,7 @@ cpu_init (void)
                xen_smp_intr_init();
        }
 #endif
+
        pm_idle = default_idle;
 }
 

Best Regards,

Akio Takebe

>Hi all,
>
>   Here's a first pass at some sparse tree cleanups based on feedback
>we've gotten on linux-ia64.  I haven't taken all of the comments into
>account yet, this is just a start.  Specific changes:
>
>- CONFIG_ARCH_XEN is no longer necessary
>- simple is_running_on_xen() checks can be handled w/o CONFIG_XEN
>- pulled forward a drivers/xen/Makefile change that broken make clean
>- changed some comments from C++ style to C
>- turned HYPERVISOR_ioremap into a macro for !CONFIG_XEN
>- made hypervisor.h and privop.h include-able for !CONFIG_XEN
>
>Let me know if you have any comments.  Thanks,
>
>       Alex
>
>Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
>
>-- 
>Alex Williamson                             HP Open Source & Linux Org.
>_______________________________________________
>Xen-ia64-devel mailing list
>Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-ia64-devel

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

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