From patchwork Fri Apr 1 15:49:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 8726181 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 950EAC0553 for ; Fri, 1 Apr 2016 15:53:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C018E201FA for ; Fri, 1 Apr 2016 15:53:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C3C65203AB for ; Fri, 1 Apr 2016 15:53:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1am1Ma-0004Dz-Uv; Fri, 01 Apr 2016 15:51:57 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1am1LP-0002Yc-SF for linux-arm-kernel@lists.infradead.org; Fri, 01 Apr 2016 15:50:47 +0000 Received: by mail-pa0-x233.google.com with SMTP id zm5so93978188pac.0 for ; Fri, 01 Apr 2016 08:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=45bVV5JXDgjL2WKfd8tQqo+wK3kmdOMBdDMtXtQa++s=; b=kEITB0KUxJAOGKI4fEYMoGt8SmrFXBdHCiW+drqR6nR/+KCeXfj+l7Rhbd/KkoOcPL zYatYHmcUmUCKY88/yyw4EFvYi+nPQlzpiyzNKo1b8Bi3uj0pLfZEZwtmZxpIjg2DQtP Nvx0YWKCpl5lvrCrk1ENjDU8XAyUXKvuG5luc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=45bVV5JXDgjL2WKfd8tQqo+wK3kmdOMBdDMtXtQa++s=; b=ilHjvQHo6eMatefDSxCSO9Ecr6QrgYFLI3gkZbq/fQ6l34BjEh72y0KH6WMqMJOUQ0 vnfFUgQRlIOQCMk1mPc1oVxqw6N0wZgpI0wTVznHNQ1+7mnKxiRTY48EsSdOEjqjowX4 g0LdzvEqA/3R8NuOOWTkc3/xLX1z83QBtN+s62cWhOb2UcFyxFuDsccxRchWrXmUCewf 7j83XLQ2skM9hmhg5y4yPRB5ZIlz8uLwwzN0DLbqwKMi+jmnKOEbYHEy4W3UbWlFI5pw 45fmpdS/BxMl0f2KbSNqQ6Z5WekSaDV3pduiUuG4srATv9VdEj13l3jGRyXpnCZAyPxY 6y7A== X-Gm-Message-State: AD7BkJL9Z6vzNuTTHOYS+4sCQnPrJYsD8SaG6GBLMKp1EOxPauhNaK74hD6Iqsf3IFLEmF4H X-Received: by 10.66.101.35 with SMTP id fd3mr31822949pab.7.1459525822438; Fri, 01 Apr 2016 08:50:22 -0700 (PDT) Received: from localhost.localdomain ([167.160.116.218]) by smtp.gmail.com with ESMTPSA id yj1sm22536791pac.16.2016.04.01.08.50.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 08:50:21 -0700 (PDT) From: Shannon Zhao To: linux-arm-kernel@lists.infradead.org, stefano.stabellini@citrix.com Subject: [PATCH v10 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio Date: Fri, 1 Apr 2016 23:49:03 +0800 Message-Id: <1459525755-36968-6-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> References: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160401_085044_310780_45576F5A X-CRM114-Status: GOOD ( 10.63 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-efi@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, peter.huangpeng@huawei.com, julien.grall@arm.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, xen-devel@lists.xen.org, shannon.zhao@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao Reviewed-by: Julien Grall --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index 2ecfe4f..9aa8988 100644 --- a/include/xen/interface/memory.h +++ b/include/xen/interface/memory.h @@ -160,6 +160,7 @@ DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mapping_t); #define XENMAPSPACE_gmfn_foreign 4 /* GMFN from another dom, * XENMEM_add_to_physmap_range only. */ +#define XENMAPSPACE_dev_mmio 5 /* device mmio region */ /* * Sets the GPFN at which a particular page appears in the specified guest's