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] Re: PATCH: increase MAX_VIRT_CPUS to 64

To: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Subject: [Xen-ia64-devel] Re: PATCH: increase MAX_VIRT_CPUS to 64
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Tue, 04 Apr 2006 09:14:12 -0600
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Apr 2006 08:14:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200604041011.06525.Tristan.Gingold@xxxxxxxx>
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
References: <200604041011.06525.Tristan.Gingold@xxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-04-04 at 09:11 +0100, Tristan Gingold wrote:
> diff -r 40d96f4e9fcb -r 65b3a99122e5 xen/arch/ia64/xen/xensetup.c
> --- a/xen/arch/ia64/xen/xensetup.c      Mon Apr  3 20:39:27 2006
> +++ b/xen/arch/ia64/xen/xensetup.c      Tue Apr  4 03:57:29 2006
> @@ -24,6 +24,12 @@
>  #include <asm/vmx.h>
>  #include <linux/efi.h>
>  
> +/* Be sure the struct shared_info fits on a page because it is mapped
> in
> +   domain.
> +   This is a static check.  */
> +extern char assert_struct_shared_info_fits_on_a_page
> +    [(sizeof (struct shared_info) <= PAGE_SIZE) ? 1 : -1];
> +

  Would it make more sense to try to get this into a #error?  The error
message this test generates is not entirely obvious.  Maybe this could
be done by adding a DEFINE(SHARED_INFO_SIZE, sizeof(struct shared_info))
in asm-offsets.c, then the test is simply:

#if SHARED_INFO_SIZE > PAGE_SIZE
 #error "struct shared_info does not not fit in PAGE_SIZE"
#endif

Is there a better way?  Thanks,

        Alex

-- 
Alex Williamson                             HP Linux & Open Source Lab


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