From patchwork Mon Apr 7 10:41:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 27890 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C951420490 for ; Mon, 7 Apr 2014 10:42:31 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf22104535yha.11 for ; Mon, 07 Apr 2014 03:42:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:message-id:user-agent :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type; bh=H0ku1nGhnRKd7GW6W0Vz1qpvZeQC8CRb8A62It2s16A=; b=IeCi2Ncsj4KaXREw8JG11F8xhvDpMr6I26TOi4tFjruHc87goayXg6BgvzDN34gSQQ q8eNhz4wDoa5+Ym6TOI9A7XrI+89JbtWxkL1sD9Tm9/RHpVur5krfwC/N7MHuGHBQ+AJ gBzkRaQ3QJOCOI4F5FRcyrsxk7UT0i3lWnU8gLl9f3ymvAfnnDcVlQClIpi+Uajd1pj8 PbB6NmRNFN+0CUsMtguLnyltdQTKKGZIilShhepF6Ak0/lbpdeN+WxVtDHFIYjyLN0N2 3ioapNUpPiqX1Efy64wh8EA/Uhi1Jcoz7lzlqozMah+PTx6lID1vpREtvIN3LBFzKhab 9Zww== X-Gm-Message-State: ALoCoQkBvE+jJV8/Sd0VwU1mILxtYrdZpZ5WixyXze8PmqgGi6TqhdHgI0/lGYtcal1z0jZZV1yY X-Received: by 10.59.5.193 with SMTP id co1mr10963073ved.30.1396867351337; Mon, 07 Apr 2014 03:42:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.69 with SMTP id e63ls1714586qgd.29.gmail; Mon, 07 Apr 2014 03:42:31 -0700 (PDT) X-Received: by 10.52.25.202 with SMTP id e10mr737650vdg.30.1396867351266; Mon, 07 Apr 2014 03:42:31 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id w10si2048010vei.16.2014.04.07.03.42.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 03:42:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so3317318veb.25 for ; Mon, 07 Apr 2014 03:42:31 -0700 (PDT) X-Received: by 10.52.95.135 with SMTP id dk7mr329487vdb.32.1396867351174; Mon, 07 Apr 2014 03:42:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp151159vcv; Mon, 7 Apr 2014 03:42:30 -0700 (PDT) X-Received: by 10.140.98.116 with SMTP id n107mr2026400qge.94.1396867350880; Mon, 07 Apr 2014 03:42:30 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id s10si6435026qak.267.2014.04.07.03.42.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 07 Apr 2014 03:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:33425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WX70Y-0001tf-H8 for patch@linaro.org; Mon, 07 Apr 2014 06:42:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WX6zu-00018S-KN for qemu-devel@nongnu.org; Mon, 07 Apr 2014 06:41:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WX6zp-0006S7-Ih for qemu-devel@nongnu.org; Mon, 07 Apr 2014 06:41:50 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:5013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WX6zp-0006Rw-EY for qemu-devel@nongnu.org; Mon, 07 Apr 2014 06:41:45 -0400 X-IronPort-AV: E=Sophos;i="4.97,809,1389744000"; d="scan'208";a="117426967" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 07 Apr 2014 10:41:43 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.2.342.4; Mon, 7 Apr 2014 06:41:42 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WX6zm-0006rf-H1; Mon, 07 Apr 2014 11:41:42 +0100 Date: Mon, 7 Apr 2014 11:41:35 +0100 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-DLP: MIA2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.63 Cc: Anthony.Perard@citrix.com, xen-devel@lists.xensource.com, Jan Beulich , Stefano Stabellini Subject: [Qemu-devel] [PATCH] pass an inclusive address range to xc_domain_pin_memory_cacheattr X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 xc_domain_pin_memory_cacheattr expects an inclusive address range: adjust the parameters. Signed-off-by: Stefano Stabellini diff --git a/xen-all.c b/xen-all.c index ba34739..027e7a8 100644 --- a/xen-all.c +++ b/xen-all.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),