2012-09-21 16:45:08 +02:00
|
|
|
--- a/xen/arch/x86/domain.c
|
|
|
|
+++ b/xen/arch/x86/domain.c
|
2012-10-03 00:08:01 +02:00
|
|
|
@@ -154,15 +154,30 @@ void dump_pageframe_info(struct domain *
|
2008-11-08 20:32:12 +01:00
|
|
|
|
|
|
|
printk("Memory pages belonging to domain %u:\n", d->domain_id);
|
|
|
|
|
|
|
|
- if ( d->tot_pages >= 10 )
|
|
|
|
+ if ( d->tot_pages >= 10 && d->is_dying < DOMDYING_dead )
|
|
|
|
{
|
|
|
|
printk(" DomPage list too long to display\n");
|
|
|
|
}
|
2010-04-19 00:21:06 +02:00
|
|
|
else
|
2008-12-05 15:30:41 +01:00
|
|
|
{
|
2010-04-19 00:21:06 +02:00
|
|
|
+ unsigned long total[PGT_type_mask
|
|
|
|
+ / (PGT_type_mask & -PGT_type_mask) + 1] = {};
|
|
|
|
+
|
2010-09-28 00:07:21 +02:00
|
|
|
spin_lock(&d->page_alloc_lock);
|
2009-05-04 18:38:09 +02:00
|
|
|
page_list_for_each ( page, &d->page_list )
|
2008-12-05 15:30:41 +01:00
|
|
|
{
|
2010-04-19 00:21:06 +02:00
|
|
|
+ unsigned int index = (page->u.inuse.type_info & PGT_type_mask)
|
|
|
|
+ / (PGT_type_mask & -PGT_type_mask);
|
|
|
|
+
|
|
|
|
+ if ( ++total[index] > 16 )
|
2008-12-05 15:30:41 +01:00
|
|
|
+ {
|
|
|
|
+ switch ( page->u.inuse.type_info & PGT_type_mask )
|
|
|
|
+ {
|
|
|
|
+ case PGT_none:
|
|
|
|
+ case PGT_writable_page:
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ }
|
2009-02-09 02:49:08 +01:00
|
|
|
printk(" DomPage %p: caf=%08lx, taf=%" PRtype_info "\n",
|
2008-12-05 15:30:41 +01:00
|
|
|
_p(page_to_mfn(page)),
|
|
|
|
page->count_info, page->u.inuse.type_info);
|