diff options
-rw-r--r-- | xen/include/public/arch-ia64.h | 4 | ||||
-rw-r--r-- | xen/include/public/arch-x86_32.h | 3 | ||||
-rw-r--r-- | xen/include/public/arch-x86_64.h | 3 | ||||
-rw-r--r-- | xen/include/public/xen.h | 3 |
4 files changed, 10 insertions, 3 deletions
diff --git a/xen/include/public/arch-ia64.h b/xen/include/public/arch-ia64.h index 53a4101641..50b5f5f608 100644 --- a/xen/include/public/arch-ia64.h +++ b/xen/include/public/arch-ia64.h @@ -14,6 +14,10 @@ #define _MEMORY_PADDING(_X) #define MEMORY_PADDING +/* Maximum number of virtual CPUs in multi-processor guests. */ +/* WARNING: before changing this, check that shared_info fits on a page */ +#define MAX_VIRT_CPUS 1 + #ifndef __ASSEMBLY__ /* NB. Both the following are 64 bits each. */ diff --git a/xen/include/public/arch-x86_32.h b/xen/include/public/arch-x86_32.h index 21f97669d5..1a11a3be86 100644 --- a/xen/include/public/arch-x86_32.h +++ b/xen/include/public/arch-x86_32.h @@ -73,6 +73,9 @@ #define machine_to_phys_mapping ((u32 *)HYPERVISOR_VIRT_START) #endif +/* Maximum number of virtual CPUs in multi-processor guests. */ +#define MAX_VIRT_CPUS 32 + #ifndef __ASSEMBLY__ /* NB. Both the following are 32 bits each. */ diff --git a/xen/include/public/arch-x86_64.h b/xen/include/public/arch-x86_64.h index a4f4ac2fcf..634c53a34e 100644 --- a/xen/include/public/arch-x86_64.h +++ b/xen/include/public/arch-x86_64.h @@ -73,6 +73,9 @@ #define HYPERVISOR_VIRT_END (0xFFFF880000000000UL) #endif +/* Maximum number of virtual CPUs in multi-processor guests. */ +#define MAX_VIRT_CPUS 32 + #ifndef __ASSEMBLY__ /* The machine->physical mapping table starts at this address, read-only. */ diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h index d46472c16c..2fdd400e92 100644 --- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -287,9 +287,6 @@ typedef struct /* Event channel endpoints per domain. */ #define NR_EVENT_CHANNELS 1024 -/* Support for multi-processor guests. */ -#define MAX_VIRT_CPUS 32 - /* * Per-VCPU information goes here. This will be cleaned up more when Xen * actually supports multi-VCPU guests. |