# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 05f36d13e30c2df3b40e4dce47c1e0d5c58d6022
# Parent 2c2c0b843f05083bf229286680d4adbb38d622a0
Improve debug tracing from HYPERVISOR_memory_op().
Signed-off-by: Ian Pratt <ian@xxxxxxxxxxxxx>
diff -r 2c2c0b843f05 -r 05f36d13e30c xen/common/memory.c
--- a/xen/common/memory.c Mon Sep 12 10:54:30 2005
+++ b/xen/common/memory.c Mon Sep 12 12:10:43 2005
@@ -29,7 +29,7 @@
int *preempted)
{
struct pfn_info *page;
- unsigned long i;
+ unsigned int i;
if ( (extent_list != NULL) &&
!array_access_ok(extent_list, nr_extents, sizeof(*extent_list)) )
@@ -37,7 +37,7 @@
if ( (extent_order != 0) && !IS_CAPABLE_PHYSDEV(current->domain) )
{
- DPRINTK("Only I/O-capable domains may allocate > order-0 memory.\n");
+ DPRINTK("Only I/O-capable domains may allocate multi-page extents.\n");
return 0;
}
@@ -52,8 +52,9 @@
if ( unlikely((page = alloc_domheap_pages(
d, extent_order, flags)) == NULL) )
{
- DPRINTK("Could not allocate order=%d extent: id=%d flags=%x\n",
- extent_order, d->domain_id, flags);
+ DPRINTK("Could not allocate order=%d extent: "
+ "id=%d flags=%x (%d of %d)\n",
+ extent_order, d->domain_id, flags, i, nr_extents);
return i;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|