From: Stefano Stabellini Date: Wed, 7 May 2014 13:48:37 +0000 (+0000) Subject: pass an inclusive address range to xc_domain_pin_memory_cacheattr X-Git-Tag: qemu-xen-4.5.0-rc1~16 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0b981bbcfeb4714969e96457c2f0497d584a309b;p=qemu-upstream-4.5-testing.git pass an inclusive address range to xc_domain_pin_memory_cacheattr xc_domain_pin_memory_cacheattr expects an inclusive address range: adjust the parameters. Signed-off-by: Stefano Stabellini --- diff --git a/xen-hvm.c b/xen-hvm.c index 0a4905518..a64486cd3 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),