ia64/xen-unstable

changeset 5469:f97b4f909b4b

bitkeeper revision 1.1709.1.14 (42b1ceb9Ne5WCPwhJ-uKiY4uN5-L5w)

Make MAX_VIRT_CPUS arch-dep
author djm@kirby.fc.hp.com
date Thu Jun 16 19:10:49 2005 +0000 (2005-06-16)
parents fbaa44e9a167
children 11fc43f1fef2
files xen/include/public/arch-ia64.h xen/include/public/arch-x86_32.h xen/include/public/arch-x86_64.h xen/include/public/xen.h
line diff
     1.1 --- a/xen/include/public/arch-ia64.h	Thu Jun 16 18:23:16 2005 +0000
     1.2 +++ b/xen/include/public/arch-ia64.h	Thu Jun 16 19:10:49 2005 +0000
     1.3 @@ -14,6 +14,10 @@
     1.4  #define _MEMORY_PADDING(_X)
     1.5  #define MEMORY_PADDING 
     1.6  
     1.7 +/* Maximum number of virtual CPUs in multi-processor guests. */
     1.8 +/* WARNING: before changing this, check that shared_info fits on a page */
     1.9 +#define MAX_VIRT_CPUS 1
    1.10 +
    1.11  #ifndef __ASSEMBLY__
    1.12  
    1.13  /* NB. Both the following are 64 bits each. */
     2.1 --- a/xen/include/public/arch-x86_32.h	Thu Jun 16 18:23:16 2005 +0000
     2.2 +++ b/xen/include/public/arch-x86_32.h	Thu Jun 16 19:10:49 2005 +0000
     2.3 @@ -73,6 +73,9 @@
     2.4  #define machine_to_phys_mapping ((u32 *)HYPERVISOR_VIRT_START)
     2.5  #endif
     2.6  
     2.7 +/* Maximum number of virtual CPUs in multi-processor guests. */
     2.8 +#define MAX_VIRT_CPUS 32
     2.9 +
    2.10  #ifndef __ASSEMBLY__
    2.11  
    2.12  /* NB. Both the following are 32 bits each. */
     3.1 --- a/xen/include/public/arch-x86_64.h	Thu Jun 16 18:23:16 2005 +0000
     3.2 +++ b/xen/include/public/arch-x86_64.h	Thu Jun 16 19:10:49 2005 +0000
     3.3 @@ -73,6 +73,9 @@
     3.4  #define HYPERVISOR_VIRT_END   (0xFFFF880000000000UL)
     3.5  #endif
     3.6  
     3.7 +/* Maximum number of virtual CPUs in multi-processor guests. */
     3.8 +#define MAX_VIRT_CPUS 32
     3.9 +
    3.10  #ifndef __ASSEMBLY__
    3.11  
    3.12  /* The machine->physical mapping table starts at this address, read-only. */
     4.1 --- a/xen/include/public/xen.h	Thu Jun 16 18:23:16 2005 +0000
     4.2 +++ b/xen/include/public/xen.h	Thu Jun 16 19:10:49 2005 +0000
     4.3 @@ -287,9 +287,6 @@ typedef struct
     4.4  /* Event channel endpoints per domain. */
     4.5  #define NR_EVENT_CHANNELS 1024
     4.6  
     4.7 -/* Support for multi-processor guests. */
     4.8 -#define MAX_VIRT_CPUS 32
     4.9 -
    4.10  /*
    4.11   * Per-VCPU information goes here. This will be cleaned up more when Xen 
    4.12   * actually supports multi-VCPU guests.