tools/mfn-dump: Fixes to 'dump-p2m'
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Apr 2014 21:06:27 +0000 (22:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 2 May 2014 12:34:35 +0000 (13:34 +0100)
commitf524e27671e2e8959d70d9e0c9d5c329d7feeda8
tree6707e8b7b8fd757eb2302606161dad3f55fe1cd4
parent8fde66c8c0feddf6ce391ceaf061dca73d33787d
tools/mfn-dump: Fixes to 'dump-p2m'

* Don't walk off the end of p2m_table under the mistaken impression that it
  contains toolstack unsigned longs.  Despite its array type it contains guest
  unsigned longs so unconditionally needs casting to the guest width to use
  correctly.  Furthermore, a 64bit toolstack must be extra careful when it
  finds a 32bit guest's INVALID_MFN.

* Drop 'mapped' and 'pinned' descriptions.  This are both bogus, including all
  uses of the is_mapped() macro.

* Rearrange the type name printing to be more concise.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/misc/xen-mfndump.c