From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi3UY-0007vS-AA for qemu-devel@nongnu.org; Wed, 07 May 2014 11:10:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wi3UT-0000qs-4K for qemu-devel@nongnu.org; Wed, 07 May 2014 11:10:42 -0400 Received: from smtp.citrix.com ([66.165.176.89]:57973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wi3UT-0000q5-07 for qemu-devel@nongnu.org; Wed, 07 May 2014 11:10:37 -0400 From: Stefano Stabellini Date: Wed, 7 May 2014 16:10:01 +0100 Message-ID: <1399475403-5408-6-git-send-email-stefano.stabellini@eu.citrix.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 6/7] pass an inclusive address range to xc_domain_pin_memory_cacheattr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: olaf@aepfle.de, xen-devel@lists.xensource.com, Stefano Stabellini , qemu-devel@nongnu.org, anthony@codemonkey.ws, Anthony.Perard@citrix.com, pbonzini@redhat.com xc_domain_pin_memory_cacheattr expects an inclusive address range: adjust the parameters. Signed-off-by: Stefano Stabellini --- xen-hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 1.7.10.4