summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xen-hvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen-hvm.c b/xen-hvm.c
index 0a49055..a64486c 100644
--- a/xen-hvm.c
+++ b/xen-hvm.c
@@ -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),
OpenPOWER on IntegriCloud