ia64/xen-unstable

changeset 7396:fd7b8b051466

At least for the time being, GETVCPUCONTEXT needs to work
even for uninitialised VCPUs. xc_linux_build() depends on
it (rather stupidly).

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Oct 15 09:32:10 2005 +0100 (2005-10-15)
parents 27d7c7f226f4
children bb127c984f74
files xen/common/dom0_ops.c
line diff
     1.1 --- a/xen/common/dom0_ops.c	Sat Oct 15 08:52:22 2005 +0100
     1.2 +++ b/xen/common/dom0_ops.c	Sat Oct 15 09:32:10 2005 +0100
     1.3 @@ -446,8 +446,7 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
     1.4              goto getvcpucontext_out;
     1.5  
     1.6          ret = -ESRCH;
     1.7 -        v = d->vcpu[op->u.getvcpucontext.vcpu];
     1.8 -        if ( (v == NULL) || !test_bit(_VCPUF_initialised, &v->vcpu_flags) )
     1.9 +        if ( (v = d->vcpu[op->u.getvcpucontext.vcpu]) == NULL )
    1.10              goto getvcpucontext_out;
    1.11  
    1.12          ret = -ENOMEM;