xen/dom-print.patch
Charles Arnold 586e33f432 - Upstream bug fixes from Jan
21089-x86-startup-irq-from-setup-gsi.patch
  21109-x86-cpu-hotplug.patch
  21150-shadow-race.patch
  21160-sysctl-debug-keys.patch

- Updated to Xen 4.0.0 FCS, changeset 21091

- Change default lock dir (when domain locking is enabled) to
  /var/lib/xen/images/vm_locks
- Support SXP config files in xendomains script

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=39
2010-04-15 19:56:11 +00:00

34 lines
1.1 KiB
Diff

--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -144,14 +144,29 @@ void dump_pageframe_info(struct domain *
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");
}
else
{
+ unsigned long total[PGT_type_mask
+ / (PGT_type_mask & -PGT_type_mask) + 1] = {};
+
page_list_for_each ( page, &d->page_list )
{
+ unsigned int index = (page->u.inuse.type_info & PGT_type_mask)
+ / (PGT_type_mask & -PGT_type_mask);
+
+ if ( ++total[index] > 16 )
+ {
+ switch ( page->u.inuse.type_info & PGT_type_mask )
+ {
+ case PGT_none:
+ case PGT_writable_page:
+ continue;
+ }
+ }
printk(" DomPage %p: caf=%08lx, taf=%" PRtype_info "\n",
_p(page_to_mfn(page)),
page->count_info, page->u.inuse.type_info);