arm: do not set max_vcpus = 8 in arch_domain_create.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jun 2012 15:23:54 +0000 (16:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jun 2012 15:23:54 +0000 (16:23 +0100)
XEN_DOMCTL_max_vcpus cannot reduce max_vcpus and therefore we can't create a
smaller guest.

The limit of 8 (due to GIC limits) should be expressed in MAX_VIRT_CPUS.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain.c
xen/include/asm-arm/config.h

index 2c3fc901397f45059bf1d65257abd281c9e74324..63bad075f62f1ee2441fe5452c44d8ab5b2051f7 100644 (file)
@@ -212,8 +212,6 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags)
             goto fail;
     }
 
-    d->max_vcpus = 8;
-
     if ( (rc = domain_vgic_init(d)) != 0 )
         goto fail;
 
index 91e87e157129895ef38b89e08b9d6e5a8920e417..7d02cc7385da1b1608c3df919bc6951c42eefb93 100644 (file)
@@ -27,7 +27,7 @@
 #define NR_CPUS 128
 #endif
 
-#define MAX_VIRT_CPUS 128 /* XXX */
+#define MAX_VIRT_CPUS 8
 #define MAX_HVM_VCPUS MAX_VIRT_CPUS
 
 #define asmlinkage /* Nothing needed */