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: 8726111 Return-Path: X-Original-To: patchwork-xen-devel@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 D6F3FC0554 for ; Fri, 1 Apr 2016 15:52:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0E1F6201FA for ; Fri, 1 Apr 2016 15:52:44 +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 284EB20109 for ; Fri, 1 Apr 2016 15:52:43 +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 1am1L8-0004Tm-W8; Fri, 01 Apr 2016 15:50:26 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1am1L7-0004T2-HJ for xen-devel@lists.xen.org; Fri, 01 Apr 2016 15:50:25 +0000 Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id 6B/86-02984-0C89EF65; Fri, 01 Apr 2016 15:50:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRWlGSWpSXmKPExsVyMfSOlu6BGf/ CDB4sk7BY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDNO/57GUnCDtWJebytbA+MTli5GLg4hgYmM EqefnWLsYuTkYBGYxywx7SkXSEJCoJ9VYsPkxywgCQmBGInTc18zQtgVEvfaT7GB2EICahLLD i9khpj0hFHi45zjzCAJNgEdiReTdgIVcXCICHhI7PlYC1LDLLCMSWLepklgg4QFwiR23VnLDr FZVaJ55VawOK+Au8TtB+uZIJbJSZw//hNsJifQnMn/XrFALHaXeDhrFvsERoEFjAyrGNWLU4v KUot0zfWSijLTM0pyEzNzdA0NTfRyU4uLE9NTcxKTivWS83M3MQIDiwEIdjB+WeJ8iFGSg0lJ lNdw2r8wIb6k/JTKjMTijPii0pzU4kOMMhwcShK8RdOBcoJFqempFWmZOcAQh0lLcPAoifDWg qR5iwsSc4sz0yFSpxgtObb8vraWiWPBj9tActvUe2uZhFjy8vNSpcR5Q0EaBEAaMkrz4MbB4v ASo6yUMC8j0IFCPAWpRbmZJajyrxjFORiVhCGu4snMK4Hb+groICaggzqkwQ4qSURISTUwxrD pB2+xO9Kz+/z7H33G26sYXbPOffjnVS/3VIGlzdybUaIhKT3Ox0754fP71uX37p3bb7277qAQ n1xic4R3xzPm1/ff3WfRfZYbEn/iRmuY7dQ3GVarn6RsCj1+fHfJ/btmYa6PWPKsa/8s7z2V8 nhF6l2HAw7v1MPKyifGt0o6RvHobpJSYinOSDTUYi4qTgQA642W7r4CAAA= X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-13.tower-27.messagelabs.com!1459525822!35109857!1 X-Originating-IP: [209.85.220.42] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12670 invoked from network); 1 Apr 2016 15:50:24 -0000 Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by server-13.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 1 Apr 2016 15:50:24 -0000 Received: by mail-pa0-f42.google.com with SMTP id td3so93471620pab.2 for ; Fri, 01 Apr 2016 08:50:23 -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=KBcfpKYsWfOEo6nFGivCWXvSUdRWxUrEsiM4zNJqh7bMrGRuUx+IIQp8DjvxHdteai RwZ+unaG+IwzWAEZHxeyOMPGi+Teyc8/IS1QZboZFjJHdaKzPHTvMvmgkchuSLMH7NO0 0roNfyFjNyi9vHi9j5K7imkFBWS8lp1sekgf45BF3G4dEC8WUhSQjadOJJ5tCI1Li7H/ FFMB76SwvOqJ0sf0jRU2XuhENlHfEWG/OdlJx19754Qb7wVPniiyccaDAvIl4MTI3Pms DAbsrQJCp39txpFWGlZm3u+paVtyiFyM4QdtpxCj8dhTK8stWXPKJ7KYEIFNi0Wjym7A aVSQ== X-Gm-Message-State: AD7BkJK0g+JfmCH3rCyFW+N66UhRhzD75ZCYugti68G3KmfXw6JfFzvc57obRZOhK3tGoZNr 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 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> 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 Subject: [Xen-devel] [PATCH v10 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 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