[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] At least for the time being, GETVCPUCONTEXT needs to work



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID fd7b8b0514667457cdb036fb62aedda57564bfd7
# Parent  27d7c7f226f489ea6dd9e4952ab6044e477653a3
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@xxxxxxxxxxxxx>

diff -r 27d7c7f226f4 -r fd7b8b051466 xen/common/dom0_ops.c
--- a/xen/common/dom0_ops.c     Sat Oct 15 07:52:22 2005
+++ b/xen/common/dom0_ops.c     Sat Oct 15 08:32:10 2005
@@ -446,8 +446,7 @@
             goto getvcpucontext_out;
 
         ret = -ESRCH;
-        v = d->vcpu[op->u.getvcpucontext.vcpu];
-        if ( (v == NULL) || !test_bit(_VCPUF_initialised, &v->vcpu_flags) )
+        if ( (v = d->vcpu[op->u.getvcpucontext.vcpu]) == NULL )
             goto getvcpucontext_out;
 
         ret = -ENOMEM;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.