arm: do not set max_vcpus = 8 in arch_domain_create.

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>
This commit is contained in:
Ian Campbell committed 2012-06-26 16:23:54 +01:00
1 parent 400b3acd20
commit aa25a619d3
2 files changed
+1 -3

No files matched your search

-2
View 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;
+1 -1
View 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 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.