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-devel

[Xen-devel] [PATCH] Bug #327 xentop/libxenstat vcpu fix

To: Josh Triplett <josh@xxxxxxxxxxxxxxx>, Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Bug #327 xentop/libxenstat vcpu fix
From: Daniel Stekloff <dsteklof@xxxxxxxxxx>
Date: Fri, 14 Oct 2005 15:39:14 -0700
Delivery-date: Fri, 14 Oct 2005 22:36:39 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
xentop will error when getting vcpu information if there are disabled
vcpus for a domain at the end of the vcpu list. xentop merely goes
through the num_vcpus list and calls DOM0_GETVCPUCONTEXT, it doesn't
check if the requested vcpu is disabled or enabled. DOM0_GETVCPUCONTEXT
returns the next enabled vcpu in the list or an error if it doesn't find
one. xentop will then error.

This is just a quick fix to check the vcpu_to_cpu[] map before
requesting vcpu info. 

Signed-off-by: Daniel Stekloff <dsteklof@xxxxxxxxxx>


Attachment: xenstat-vcpus-fix.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>