mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
400b3acd20
commit
aa25a619d3
2 files changed
+1
-3
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||