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>
xenstat-vcpus-fix.patch
Description: Text Data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|