From patchwork Mon Sep 19 02:08:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 9338441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1D98601C2 for ; Mon, 19 Sep 2016 02:12:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB2DD28EAB for ; Mon, 19 Sep 2016 02:12:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD8AC28EAE; Mon, 19 Sep 2016 02:12:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 1895B28EAB for ; Mon, 19 Sep 2016 02:12:58 +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 1blo1M-0004BK-0v; Mon, 19 Sep 2016 02:09:24 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1blo1L-0004BE-CG for xen-devel@lists.xen.org; Mon, 19 Sep 2016 02:09:23 +0000 Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id 39/E3-03032-2D84FD75; Mon, 19 Sep 2016 02:09:22 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRWlGSWpSXmKPExsVyMfSOo+5Fj/v hBo3TLC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oy/ZzMLjohWXLxynqmBsVGoi5GLQ0hgAqPE htd3WEAcFoGXLBIPV/1hB3EkBPpZJa4/72brYuQEcmIkJk+by9TFyAFkl0vcOSAGEhYSUJGYu 6mHEWLSdCaJl693MYEk2ASkJfZcWMoI0ashsfTofVaQIhGBfkaJN4fnsoIkmAUsJc5v+MgOYg sL2Ei87X0IFmcRUJVYefkD2GJeAQeJjiULWSAGyUlcnzkdbAGngKPEhIaX7BBXOEgcOPKbfQK j4AJGhlWMGsWpRWWpRbpGlnpJRZnpGSW5iZk5uoYGpnq5qcXFiempOYlJxXrJ+bmbGIEhV8/A wLiD8fIWv0OMkhxMSqK8O0ruhQvxJeWnVGYkFmfEF5XmpBYfYpTh4FCS4D3ofj9cSLAoNT21I i0zBxj8MGkJDh4lEd5YkDRvcUFibnFmOkTqFKMxx5bf19YycWybem8tkxBLXn5eqpQ4bxtIqQ BIaUZpHtwgWFReYpSVEuZlZGBgEOIpSC3KzSxBlX/FKM7BqCTMKwUyhSczrwRu3yugU5iATlk 96zbIKSWJCCmpBkYJFS/5kAs/HazsPqsnz7vEkHRkSvkG5sB1x/Ua5W/JRUv5xKVrX9R7ZNzD U7I0gyPpwGbvP25PS3XefW88rDvZS7T+wEJ37XPrVBdf+nB/+UrfXMk5p65sF3nGwOHUzm41a /51Rb9zNzZYO8g1ll3iO36bVTntSU7RDa1NUi/ucjSt6Gu9MFGJpTgj0VCLuag4EQBvQNUmxQ IAAA== X-Env-Sender: van.freenix@gmail.com X-Msg-Ref: server-15.tower-206.messagelabs.com!1474250960!46426660!1 X-Originating-IP: [209.85.220.65] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22571 invoked from network); 19 Sep 2016 02:09:21 -0000 Received: from mail-pa0-f65.google.com (HELO mail-pa0-f65.google.com) (209.85.220.65) by server-15.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 19 Sep 2016 02:09:21 -0000 Received: by mail-pa0-f65.google.com with SMTP id oz2so6206856pac.0 for ; Sun, 18 Sep 2016 19:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L3I62vBpxYq5QDfVqVP1laTMfOpW9/1XTCv+MIfWUuM=; b=dwVnwbmuR4TB5YLJXbPl6yWw3p65+oQmeYhLDNAo3ITiIz3XSSHhDPJkYhonq5E8HE 6Heu7eQ/dn1jBWrTrxAvcs96HDfhYI9K5UkyRTf7cN9EN6frqi9YzgoRKRnhjRB176JJ BRikfgGItc8LO4d3W/9EsomOIYJq2PghnUhniHlomK2+GDqZlgybqrjRwAG7BIHOjF33 O59aS16AzxAPsxQxNzmGUuemiK2/3uQRh8qTEf/ruRLAnNGIARZTNdSh/x2wdsDYonBE hh+piLAGaGv7YYDZPu0C7s7bFDwABUu88hm1RYdF1iJt/hI5Ft6SyIaD8OGX5FS0nxOy E1gQ== 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=L3I62vBpxYq5QDfVqVP1laTMfOpW9/1XTCv+MIfWUuM=; b=Njw7shoI/Hd6e/hJCUWuyNJhcsyBOmpHgWqOVk3vG4sdPUbsUt/YIzMclbH2O972xM KOrjblWGs3mnmW/i/266O0q3VVejEZr91jxXhit5Nl8fpJ+bmf6lqtMmIuo1LN65HX94 NotaeKZKD+tMgSfl0FWxUXMRnr5IndQpq9Ce4N0Tn16LXpb5rWx1UOfN15vO/LPRD+X3 /wxe/i81b+YzNT7OViARKP367G7egkDvT50SuaUkOQWE94VviXd+ettV6tTWBzoHiNFg zjFLzGfvCoKL2jCs808cRNQQpCmFvqyseFaO1DWEMf60jKb0qMIJFC9hxkPpHM4/r3HR ko4A== X-Gm-Message-State: AE9vXwMDobc048gcRLh1WgOr+ofYeTsLxMjgVAo7SrMbIkOTUBvCXSjToUnrnJcbid2erQ== X-Received: by 10.66.159.1 with SMTP id wy1mr1233623pab.20.1474250960198; Sun, 18 Sep 2016 19:09:20 -0700 (PDT) Received: from linux-u7w5.ap.freescale.net (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id i68sm66777180pfc.25.2016.09.18.19.09.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 19:09:19 -0700 (PDT) From: van.freenix@gmail.com X-Google-Original-From: peng.fan@nxp.com To: julien.grall@arm.com, sstabellini@kernel.org, jbeulich@suse.com, andrew.cooper3@citrix.com, jgross@suse.com, dario.faggioli@citrix.com Date: Mon, 19 Sep 2016 10:08:53 +0800 Message-Id: <1474250936-27962-3-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1474250936-27962-1-git-send-email-peng.fan@nxp.com> References: <1474250936-27962-1-git-send-email-peng.fan@nxp.com> Cc: Peng Fan , xen-devel@lists.xen.org Subject: [Xen-devel] [RFC 2/5] xen: cpupool: introduce cpupool_arch_info 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-Virus-Scanned: ClamAV using ClamSMTP From: Peng Fan Intrdouce cpupool_arch_info. To ARM, add a 'midr' entry to hold the MIDR info of the cpupool. Signed-off-by: Peng Fan Cc: Stefano Stabellini Cc: Julien Grall Cc: Jan Beulich Cc: Andrew Cooper --- xen/include/asm-arm/cpupool.h | 16 ++++++++++++++++ xen/include/asm-x86/cpupool.h | 16 ++++++++++++++++ xen/include/xen/sched-if.h | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 xen/include/asm-arm/cpupool.h create mode 100644 xen/include/asm-x86/cpupool.h diff --git a/xen/include/asm-arm/cpupool.h b/xen/include/asm-arm/cpupool.h new file mode 100644 index 0000000..f450199 --- /dev/null +++ b/xen/include/asm-arm/cpupool.h @@ -0,0 +1,16 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +struct cpupool_arch_info +{ + uint32_t midr; /* Hold the MIDR info of the pool */ +}; diff --git a/xen/include/asm-x86/cpupool.h b/xen/include/asm-x86/cpupool.h new file mode 100644 index 0000000..3251709 --- /dev/null +++ b/xen/include/asm-x86/cpupool.h @@ -0,0 +1,16 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +struct cpupool_arch_info +{ + /* Nothing now.. */ +}; diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h index bc0e794..eb52ac7 100644 --- a/xen/include/xen/sched-if.h +++ b/xen/include/xen/sched-if.h @@ -8,6 +8,7 @@ #ifndef __XEN_SCHED_IF_H__ #define __XEN_SCHED_IF_H__ +#include #include /* A global pointer to the initial cpupool (POOL0). */ @@ -186,6 +187,7 @@ struct cpupool unsigned int n_dom; struct scheduler *sched; atomic_t refcnt; + struct cpupool_arch_info info; }; #define cpupool_online_cpumask(_pool) \