|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/EPT: also dump permissions and memory types
commit 90e9c95f9713f413d6e7b2e19492d4e038a319b9
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Fri Mar 28 13:42:43 2014 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Mar 28 13:42:43 2014 +0100
x86/EPT: also dump permissions and memory types
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Tim Deegan <tim@xxxxxxx>
---
xen/arch/x86/mm/p2m-ept.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/mm/p2m-ept.c b/xen/arch/x86/mm/p2m-ept.c
index ac4c8f8..99a1084 100644
--- a/xen/arch/x86/mm/p2m-ept.c
+++ b/xen/arch/x86/mm/p2m-ept.c
@@ -730,6 +730,14 @@ static void ept_dump_p2m_table(unsigned char key)
unsigned long record_counter = 0;
struct p2m_domain *p2m;
struct ept_data *ept;
+ static const char memory_types[8][2] = {
+ [0 ... 7] = "?",
+ [MTRR_TYPE_UNCACHABLE] = "UC",
+ [MTRR_TYPE_WRCOMB] = "WC",
+ [MTRR_TYPE_WRTHROUGH] = "WT",
+ [MTRR_TYPE_WRPROT] = "WP",
+ [MTRR_TYPE_WRBACK] = "WB",
+ };
for_each_domain(d)
{
@@ -759,8 +767,15 @@ static void ept_dump_p2m_table(unsigned char key)
if ( ept_entry->sa_p2mt == p2m_populate_on_demand )
printk("gfn: %13lx order: %2d PoD\n", gfn, order);
else
- printk("gfn: %13lx order: %2d mfn: %13lx\n",
- gfn, order, ept_entry->mfn + 0UL);
+ printk("gfn: %13lx order: %2d mfn: %13lx %c%c%c %c%c%c\n",
+ gfn, order, ept_entry->mfn + 0UL,
+ ept_entry->r ? 'r' : ' ',
+ ept_entry->w ? 'w' : ' ',
+ ept_entry->x ? 'x' : ' ',
+ memory_types[ept_entry->emt][0],
+ memory_types[ept_entry->emt][1]
+ ?: ept_entry->emt + '0',
+ ept_entry->ipat ? '!' : ' ');
if ( !(record_counter++ % 100) )
process_pending_softirqs();
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |