Hi,

this patch fixes a nasty I found during driver domain work.
This is somewhat a work-around but not that ugly.

Tristan.
# HG changeset patch
# User [EMAIL PROTECTED]
# Node ID bf61ba87cda4dd59d9d532dbc973517b5af33f6a
# Parent  d41ec8b152e512016929bbcb24af95748fb9fe88
Bug fix: restore phys_addr field, because some other Xen functions consider
 it as unused.

Signed-off-by: Tristan Gingold <[EMAIL PROTECTED]>

diff -r d41ec8b152e5 -r bf61ba87cda4 linux-2.6-xen-sparse/arch/ia64/xen/util.c
--- a/linux-2.6-xen-sparse/arch/ia64/xen/util.c	Wed Jul 26 08:01:24 2006 +0200
+++ b/linux-2.6-xen-sparse/arch/ia64/xen/util.c	Wed Jul 26 12:24:39 2006 +0200
@@ -71,6 +71,9 @@ void free_vm_area(struct vm_struct *area
 	unsigned int order = get_order(area->size);
 	unsigned long i;
 
+	/* xenbus_map_ring_valloc overrides this field!  */
+        area->phys_addr = __pa(area->addr);
+
 	// This area is used for foreign page mappping.
 	// So underlying machine page may not be assigned.
 	for (i = 0; i < (1 << order); i++) {
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel

Reply via email to