ia64/xen-unstable

diff xen/arch/ia64/xen/dom0_ops.c @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 4fd4dcf2f891
children
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Mon Jun 29 11:23:53 2009 +0900
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Mon Jun 29 11:26:05 2009 +0900
     1.3 @@ -233,7 +233,8 @@ long arch_do_domctl(xen_domctl_t *op, XE
     1.4              goto sendtrigger_out;
     1.5  
     1.6          ret = -ESRCH;
     1.7 -        if ( (v = d->vcpu[op->u.sendtrigger.vcpu]) == NULL )
     1.8 +        if ( op->u.sendtrigger.vcpu >= d->max_vcpus ||
     1.9 +             (v = d->vcpu[op->u.sendtrigger.vcpu]) == NULL )
    1.10              goto sendtrigger_out;
    1.11  
    1.12          ret = 0;