[libvirt] virsh vcpuinfo always returns CPU=0

Hi there, I wonder what does the CPU entry stands for in the output of vcpuinfo. I guess it is the CPU utilization rate, right? For both Ubuntu 9.04 (virsh version 0.6.1) and RHEL 5.4 (version 0.6.3), I always get the returned CPU value to be 0, no matter how busy the CPU can be and how many VCPU is used. For example, onnecting to uri: qemu:///system VCPU: 0 CPU: 0 State: running CPU Affinity: yyyyyyyyyyyyyyyy VCPU: 1 CPU: 0 State: running CPU Affinity: yyyyyyyyyyyyyyyy Is this a problem and how do I fix it? Thank you very much. -- Shi Jin, PhD

On Wed, Sep 02, 2009 at 09:37:15AM -0700, Shi Jin wrote:
Hi there,
I wonder what does the CPU entry stands for in the output of vcpuinfo. I guess it is the CPU utilization rate, right?
It is the most recent physical CPU in which the vCPU ran.
For both Ubuntu 9.04 (virsh version 0.6.1) and RHEL 5.4 (version 0.6.3), I always get the returned CPU value to be 0, no matter how busy the CPU can be and how many VCPU is used. For example, onnecting to uri: qemu:///system VCPU: 0 CPU: 0 State: running CPU Affinity: yyyyyyyyyyyyyyyy
VCPU: 1 CPU: 0 State: running CPU Affinity: yyyyyyyyyyyyyyyy
Is this a problem and how do I fix it?
Upgrade to newer libvirt with this patch in http://libvirt.org/git/?p=libvirt.git;a=commit;h=c4a04dc0240589031ba1042f446... Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (2)
-
Daniel P. Berrange
-
Shi Jin