FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

LinkBack Thread Tools
Old 02-22-2012, 01:42 PM
Dave Anderson
Default extension module for translating KVM guest's physical address to host's address

----- Original Message -----
> Hi Dave and manager of qemu-discuss,
> I have implemented an extension module for translating KVM guest's
> physical address to host's address. The related command is
> "qemu-vtop".
> The attachment is the code I implemented. Please copy the file to the
> crash-<version>/extensions subdirectory and from the top-level
> crash-<version> directory, enter:
> $ make extensions
> (please refer to http://people.redhat.com/anderson/extensions.html)
> To add the module's command(s) to a running crash session, enter:
> crash> extend qemu-vtop.so
> "mod -s kvm" is needed to load kvm debug-info to offer some data to
> qemu-vtop command.
> The command uses information of struct "kvm_memslots" to get the
> relationship between gpa and hva. Struct "kvm_memslots" is holded by a
> file, called "anon_inode:kvm-vm", opened by qemu-kvm. Then, "do_vtop" is
> called to get hpa. About the detailed implementation, please refer to
> attachment.
> The functionality is limited, but I think it is useful when debugging a
> qemu-kvm virtual machine. So I post it.
> --
> --
> Regards
> Qiao Nuohan

Nicely done!

I've also added a link to the the module on the extensions page.
Let me know if you ever update or enhance the command, so that
the latest version is always available to download from there.


Crash-utility mailing list

Thread Tools

All times are GMT. The time now is 12:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org