Skip to contentSkip to conversation

pass an inclusive address range to xc_domain_pin_memory_cacheattr

PATCH New Stefano Stabellini 1 participant 1 message Apr 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pass an inclusive address range to xc_domain_pin_memory_cacheattr

xc_domain_pin_memory_cacheattr expects an inclusive address range:
adjust the parameters.

xen-all.c +1 -1
index ba34739..027e7a8 100644
@@ -323,7 +323,7 @@ go_physmap:
 
     xc_domain_pin_memory_cacheattr(xen_xc, xen_domid,
                                    start_addr >> TARGET_PAGE_BITS,
-                                   (start_addr + size) >> TARGET_PAGE_BITS,
+                                   (start_addr + size - 1) >> TARGET_PAGE_BITS,
                                    XEN_DOMCTL_MEM_CACHEATTR_WB);
 
     snprintf(path, sizeof(path),