aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domctl.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-29 14:48:28 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-10-29 14:48:28 +0000
commit6785f5fef31f5c94d6d7902aea61237cf08420b1 (patch)
treef3875f323323caed1b71e72c2ded4ea41ce5902b /xen/common/domctl.c
parentabcac528725704d9bfbe613b2aa83a0ce0f3d8c2 (diff)
downloadxen-6785f5fef31f5c94d6d7902aea61237cf08420b1.tar.gz
xen-6785f5fef31f5c94d6d7902aea61237cf08420b1.tar.bz2
xen-6785f5fef31f5c94d6d7902aea61237cf08420b1.zip
Extend the max vcpu number for HVM guest.
- Originally the max vcpu number for HVM guest is 32, this patch extend the number to 128 on x86_64 hypervisor. (For i386 hypervisor, the max vcpu number is still 32). - This patch extends the mp-table size to fit more vcpus. - HVM PV driver should call VCPUOP_register_vcpu_info hypercall to initialize the vcpu info if the vcpu number is more than 32. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r--xen/common/domctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c
index 290b9494dd..0c417c7fea 100644
--- a/xen/common/domctl.c
+++ b/xen/common/domctl.c
@@ -456,7 +456,7 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)
ret = -EINVAL;
if ( (d == current->domain) || /* no domain_pause() */
(max > MAX_VIRT_CPUS) ||
- (is_hvm_domain(d) && max > XEN_LEGACY_MAX_VCPUS) )
+ (is_hvm_domain(d) && (max > MAX_HVM_VCPUS)) )
{
rcu_unlock_domain(d);
break;