]> xenbits.xensource.com Git - xen.git/commit
tools/misc: introduce xen-mfndump.
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 10 Sep 2013 17:54:20 +0000 (19:54 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Sep 2013 12:10:10 +0000 (13:10 +0100)
commitae763e4224304983a1cde2fbb3d6e0c4d60b2688
treee022b1179f2062993fb929560dd96f7b0f5279d1
parent266abb240738bb37ccb28623806273c58523f422
tools/misc: introduce xen-mfndump.

A little development and debugging tool, useful when looking
for information about MFN to PFN mappings, MFN/PFN mappings
in a guest's PTEs, etc.

This is what it can do as of now:

$ /usr/sbin/xen-mfndump
Usage: xen-mfndump <command> [args]
Commands:
  help                      show this help
  dump-m2p                  show M2P
  dump-p2m    <domid>       show P2M of <domid>
  dump-ptes   <domid> <mfn> show the PTEs in <mfn>
  lookup-pte  <domid> <mfn> find the PTE mapping <mfn>
  memcmp-mfns <domid1> <mfn1> <domid2> <mfn2>
                            (str)compare content of <mfn1> & <mfn2>

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/misc/Makefile
tools/misc/xen-mfndump.c [new file with mode: 0644]