From patchwork Thu Mar 24 14:44:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 8661631 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 245969F36E for ; Thu, 24 Mar 2016 14:49:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 500B4203B4 for ; Thu, 24 Mar 2016 14:49:12 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 862082017D for ; Thu, 24 Mar 2016 14:49:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj6XC-0002yr-Tb; Thu, 24 Mar 2016 14:46:50 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj6XB-0002yF-Os for xen-devel@lists.xen.org; Thu, 24 Mar 2016 14:46:49 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id 25/60-04060-8DDF3F65; Thu, 24 Mar 2016 14:46:48 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-9.tower-31.messagelabs.com!1458830807!6102855!1 X-Originating-IP: [209.85.220.44] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6113 invoked from network); 24 Mar 2016 14:46:48 -0000 Received: from mail-pa0-f44.google.com (HELO mail-pa0-f44.google.com) (209.85.220.44) by server-9.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 24 Mar 2016 14:46:48 -0000 Received: by mail-pa0-f44.google.com with SMTP id tt10so23983383pab.3 for ; Thu, 24 Mar 2016 07:46:48 -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=WGHM7puUQFasF+5361/EquiYQGpm1tmP/YBzcSDLa7T0tLwSaBz1Ikprr1IxxO5W3L ejFghGw/QOtN3xa5VT4HHSlnqQm8uJNP/M3u5sJRaTZEBGZ0H9ZuMEPxfVgwy/4Lms7+ q7wX++CI7llbHLOln/hujZJ3V7FDL/OGV4EmU= 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=Nt2bKki3fLdk4z8sKgi6Q9XIpwCkims972qBkxfXN1XiuVc4Yga/LaB5M2Of7o1lC0 Ci0OyH9KTVaotKHEBsbl4nkyrL9iM9+W5NGVc9rQBVMeVTG5DA4ZO8Syx024LaDIZeSX xI/5MtBhdS8+BKqQH9GKmIvTXYh/j/MdRNOY9pl8FaE4WcpewGX4nnyWyCvXJLKI+MG+ wBe7mPpfpt4ej02MYUtf3jqkkPZvANno3xvZP8Y1V5Kwe87GAIvj+3bXTG8ua438hd41 WDtGkRk5IuAIT5EEK0xmwHGXRo3BCoMMbGbWYTa5ky3p+TG0ZMmNvv1CD1yvqUTq9Dmt VyvA== X-Gm-Message-State: AD7BkJLDy7yPg6mkFVN7GL5rIY59zSrsTUdwH8hC9Gkloh4dRg1IX2b51ezy1Vv7cSDm4kV5 X-Received: by 10.66.120.46 with SMTP id kz14mr13353529pab.61.1458830806954; Thu, 24 Mar 2016 07:46:46 -0700 (PDT) Received: from localhost.localdomain ([104.238.45.135]) by smtp.gmail.com with ESMTPSA id lq10sm10780673pab.36.2016.03.24.07.46.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2016 07:46:45 -0700 (PDT) From: Shannon Zhao To: linux-arm-kernel@lists.infradead.org, stefano.stabellini@citrix.com, david.vrabel@citrix.com Date: Thu, 24 Mar 2016 22:44:24 +0800 Message-Id: <1458830676-27075-6-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458830676-27075-1-git-send-email-shannon.zhao@linaro.org> References: <1458830676-27075-1-git-send-email-shannon.zhao@linaro.org> 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, shannon.zhao@linaro.org, zhaoshenglong@huawei.com, xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH v7 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, 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 --- 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