[re-adding the list, so others may benefit from the answers]
On 02/09/2012 02:00 PM, Irfan Ahmed wrote:
thanks Eric. Just for clarification, if the page is swaped out from
RAM to HDD, will virDomainMemoryPeek functionalso retrive the block of size 'size'
from that too or it is only restricted to the pages exist in RAM.
virDomainMemoryPeek is limited to reading what is in the guest's RAM.
As I said earlier, if you are interested in reading what is in the
guest's disk, you might find libguestfs to be a more powerful tool.
Is there any example program that uses virDomainMemoryPeek function.
Alas, no one has yet wired up virsh to call virDomainMemoryPeek (patches
welcome), and I don't personally have any example programs that use it.
Rich Jones might have some better ideas (as both author of libguestfs,
and as the implementer of virDomainMemoryPeek).
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org