<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 20, 2015 at 8:04 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/20/2015 07:32 PM, hanyandong wrote:<br>
<br>
[please don't top-post on technical lists]<br>
<span class=""><br>
> As I know, you can use Libvmi  API  to access the memory of VM and then walk through the double-linked list of process to reconstruct the process list. it is easy, and libvmi has provide the example<br>
<br>
</span>Maybe so, but that requires very intimate knowledge of the exact kernel<br>
running in the guest, and could be rather fragile; especially if you are<br>
not freezing the guest while snooping memory.  Adding a guest-agent<br>
command would probably be more portable across a wider range of guests.<br></blockquote><div><br></div><div>I agree with that, even though this might work, but might require very kernel specific code. Probably not the road that I would</div><div>want to go down. Nevertheless,  Yandong, appreciate the suggestion.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
<br>
>> No, I don't think there's a way. Problem is, libvirt views guest<br>
>> internals private to the guest. Having said that, I don't think there<br>
>> ever will be an API for that. Nor qemu-ga has an API for executing an<br>
>> arbitrary shell commands.<br>
<br>
</span>There have been proposals on the qemu list for adding such a qemu-ga<br>
command, although it hasn't been reviewed for inclusion yet.<br></blockquote><div><br></div><div>Thanks Eric for the pointer, do you know if it is on the roadmap or some kind of plan though ?</div><div><br></div><div>Michal, thanks for your response too.</div><div><br></div><div>Regards</div><div>dtsweval </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br></div></div>