Hi Daniel,
 
Thanks a lot for providing us your pointers. From the domain.xml(attached in my previous mail) which we have used for defining virtual guest i can see below lines
<emulator>/usr/local/bin/qemu-system-x86_64</emulator>

We were using same domain.xml in eralier libvirt version and the execution of cpu_stats command was successful. Now if we have to get "cpu_stats" command working using QEMU emulator on libvirt can you suggest what can we do.

I have found below links on google while checking for the vcpu pid's error
https://www.redhat.com/archives/libvir-list/2013-June/msg00214.htm
https://www.redhat.com/archives/libvir-list/2012-August/msg01405.html
https://www.redhat.com/archives/libvir-list/2012-August/msg01413.html


Can you let us know if any of the above patches fix our issue.

Thanks
Abhinay
On Thu, Aug 22, 2013 at 3:19 PM, Daniel P. Berrange <berrange@redhat.c
om> wrote:
On Thu, Aug 22, 2013 at 03:04:41PM +0200, arun abhinay wrote:
> Hi Daniel,
>
> Thanks for your immidiate reply. The starting of virtual guest was ok on
> our machine. We are facing this issue while executing the "cpu-stats
> <domain name>" command.
> I have collected the debug logs as you suggested and attaching the same.

The cpu-stats command relies on the vCPU cgroups existing. These are
created when the guest starts. So the fact that cpu-stats can't find
the cgroups shows that something failed during startup.


Your log file shows this:

2013-08-22 12:45:44.326+0000: 17554: warning : qemuSetupCgroupForVcpu:953 : Unable to get vcpus' pids.^M

which is the root cause of your problems.

If libvirt can't find the vcpu PIDs, this suggests that your guests are
running using QEMU TCG instead of KVM.

Daniel
--
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|