WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] At least for the time being, GETVCPUCONTEXT needs to work
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 15 Oct 2005 12:50:17 +0000
Delivery-date: Sat, 15 Oct 2005 12:48:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] At least for the time being, GETVCPUCONTEXT needs to work, Xen patchbot -unstable <=