Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp206674ybz; Thu, 23 Apr 2020 22:04:09 -0700 (PDT) X-Google-Smtp-Source: APiQypK3swbpmefZOVQ0WhuAfLoHoDl7UgaWEn7T4L+8cFbt+cFplCxhylnI5SeoCJ441mefTBct X-Received: by 2002:a17:906:16ca:: with SMTP id t10mr5743213ejd.122.1587704649704; Thu, 23 Apr 2020 22:04:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587704649; cv=pass; d=google.com; s=arc-20160816; b=vGt9mdEdyVbwh1/UL33tYvSghI4HtYshelfdvxtMgY/+uDMN9AH2dy7oDEAvTZGfZL 2p+iudCG2ExYRl/094z0qb1IQJSfhge9QTYt+3JwWsPi4NNtcKgigM33AG9YGdxU4E0P CIWVW+xRYpTOgT+qPD64/rqlCipqE1djpFDSicJ7clquwvwo31JdGWtyYv2s0/XGCPFo J1IU8LqNp7AVtrr8M/SZnMmI9kH9YAK/1w/qpk+/pCOTt5PQAKU38rCdfJXDdWk3BtJ9 JUFLa4/7rinbOjKWEosFRRyHjzH/d44ECIPUixYLiRzH/q5SByvFfUiFQpnK3iRSZI/Q 3PTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:wdcipoutbound:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature:ironport-sdr:dkim-signature; bh=MmpUk/iHmXL2NaITJWMDkQWf4xmblBLnoU2PM3OklQ8=; b=x4ksF9xbCjvPyOqXBIwmHyGGXks+hPCMx9GpGkE71bdv9Ojsfie4i9nh1LeRdu294K jpQ9Te8nQXpPFbw7ZewXoCCsBC0TlbVH7gTuhJ5lI0NLc+GEeGXiCDyRT4baqu/LkByj D212YYWCw4+w07NudClsnpTeGJMt89HmCE0BNopEgJu9OrPVdU3WOQg/vMY9vFIEQ7vX 8VFFKPNyGqfBiw8CjvRGH6tWOkkUruKhx1UcLQ2k1bSEk7z37h0LiQ344y51IumV22L3 sj1Wss5BC64MiWPnEG5a4g/ZFCJjfh5vYXqUL6xGb6C/mjkGDjkgrawTAaHkCYzObv3z TKkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ocdVOzdX; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=vyB01TCv; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si2513722edo.6.2020.04.23.22.03.45; Thu, 23 Apr 2020 22:04:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ocdVOzdX; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=vyB01TCv; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726413AbgDXFAO (ORCPT + 99 others); Fri, 24 Apr 2020 01:00:14 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:17046 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgDXFAN (ORCPT ); Fri, 24 Apr 2020 01:00:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1587704414; x=1619240414; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=3RFL5fk8ktjSeopG8h0D42A38ZN6X8PbrTCsrXCK1WU=; b=ocdVOzdXsqEyYbUsFRt9/mve6cf9RWYW/I/9BqEYM+dn9S59+m6Wy+Aj 1iKYbm3aq21ln7Ff4KJWsxIMS9cRLz+9LeeO9IwId4+bZ3xWlnmXOVS7P 0bsayC2WH/0FYI6BpAf1EdDqY1yO6oJgzr5tEMzBk894BLFwmfzZGcqyj QCrDevTI8UyfwEBMHwtFtraYfmmWexIW/Jwr9P6iwKO2vwGPB7+ESmgit sAoCN83Yt31zzwIXYAlXBqyjFEM5uQ+eGKfRvazwq9Hu4si7zNVzCSBKX QZaAc4Eka7OmKGwTinEg9ucycloe2/+8qEdk9MsgHp5FsRTwgT8C44Ptf g==; IronPort-SDR: M89i/vv+1ikN4QeDNUnviHuIGjQz1cU6WJVw8dWEg+I5o6OERXs5te56WgXn72DU2ZmO8hgcbL em3H3LGw5VBNP4UbB+EIXHgCccydP8N4RV4m3khGp3v70VaPBYzz94tiOOTXG3W3h04mSanL8z mOsM/s7Ysj1i13Lzb9rFYkRfjnDFGzxEvt7iZi42y0MTchGSpnGNf0TObJX8gG98Unpk+U0KBK 9DxELnqjGJnUb104qVr2vuiB59DUqE1wxHBY92XvQ0D6ZdjpDJt5PXFPkpZtDEbjNTpRYFQVCH im0= X-IronPort-AV: E=Sophos;i="5.73,310,1583164800"; d="scan'208";a="136354210" Received: from mail-co1nam11lp2174.outbound.protection.outlook.com (HELO NAM11-CO1-obe.outbound.protection.outlook.com) ([104.47.56.174]) by ob1.hgst.iphmx.com with ESMTP; 24 Apr 2020 13:00:13 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XnHIBFyxSRdL72GGgY6+gfta/vV9yq/sZV2aawGsgrfUTQ1G850IHWVEyrPoIiiwb+FQf5VyjOA3ZjVvzPT9HU5tFiHDdul3boYSLxtATyXdQyZkEGTy3wAskoiFOKxnjXZFBstxduKSW74girdwxH/0RXqBV/wxrpXGgA+DvfaVXBmeRFW2OnTHJ42GbwJESlx1WBD0HT9uT0XS2Y5YNzq72LMlh26PhccKBDDXf601gHpuNskjWyYBVzG9nBnZm3/y2A/nnmh5j0NezMysVArTTgU/4OfFtLfG/rlC9l3qhuugHuung0FiajfDnJA/0j406+iqFahnYqu/rr/kAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MmpUk/iHmXL2NaITJWMDkQWf4xmblBLnoU2PM3OklQ8=; b=GHQiu+k4bLeBTnQyM/8yYkywOMf5EWw/j6QU+a0edcezxvSZRYTElolbmWVW2IpG5jaxbkX1vVdgnoLlXIEmUiUgGTj2zXCL/b1w6jBqr2e16F751SzhOoufMtexq9G3Ye99ryvZu/1gZPbFjYz/zUdwpKuwtN3GiNLnyP49JyNGDFw2FVjIqdsAlPtulY/c9lgzyKuBYpDoW1XTWbAnUgJkWIk+iENCHTZoLiTG57EqHufsQJALMUpKD98/y/G8wg0IMpenR0d/vUOinofRhnPUUX02jFX9SpD88+LhjMwfdShNV5gLLPxIkEMmkuuiy4ilUYxc52DTu+sEUC5hqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MmpUk/iHmXL2NaITJWMDkQWf4xmblBLnoU2PM3OklQ8=; b=vyB01TCv2z9PY3qeXhdVaZecrUaUTBoWHU9DV8U0yZlptI0GQ2o4VfYAyttZKF7mV/HtjrPKNGRFYxerHR+dtu6bs5whfvLj4/SaVxKJ1gPQl1T+Hp76Jjkfqc3H8tfPLHlyHh8BqDXOw5U8l0l2+r8qyXdI8RS2R9aIChSxpUs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; Received: from DM6PR04MB6201.namprd04.prod.outlook.com (20.178.225.224) by DM6PR04MB5467.namprd04.prod.outlook.com (20.178.25.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Fri, 24 Apr 2020 05:00:11 +0000 Received: from DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::f8b3:c124:482b:52e0]) by DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::f8b3:c124:482b:52e0%5]) with mapi id 15.20.2921.030; Fri, 24 Apr 2020 05:00:10 +0000 From: Anup Patel To: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou , Paolo Bonzini Cc: Atish Patra , Alistair Francis , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH 0/3] RISC-V KVM preparation Date: Fri, 24 Apr 2020 10:29:25 +0530 Message-Id: <20200424045928.79324-1-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MA1PR01CA0130.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::24) To DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (49.207.59.136) by MA1PR01CA0130.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Fri, 24 Apr 2020 05:00:04 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [49.207.59.136] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f8e8f040-1375-42a8-9ea1-08d7e80c5d51 X-MS-TrafficTypeDiagnostic: DM6PR04MB5467: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-Forefront-PRVS: 03838E948C X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6201.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(366004)(39860400002)(136003)(346002)(376002)(54906003)(110136005)(55016002)(52116002)(7696005)(16526019)(8936002)(5660300002)(7416002)(4326008)(2906002)(8886007)(6666004)(81156014)(478600001)(1006002)(186003)(316002)(1076003)(55236004)(36756003)(4744005)(44832011)(8676002)(2616005)(26005)(956004)(66556008)(66476007)(86362001)(66946007);DIR:OUT;SFP:1102; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wMUHww/1zaXgttl+BrdgHbT9VXw249QEYJOL/3cSxCCPKP0xfTvja7OU9xX/Wagiisk2s9lL37cH6PtUhBZw2Exg6e4QIdeEfYX2x6KCA9E+pautszrfxVm3n2MOrpICdVLxBAZapSTJoqh1ca2DcmiMjzsqCXH+JN0rp4Gkhf6I7wcYqn5qODlbtHXHr7nz4c1WEYq4nr3fP46vp4PdfuKf1n0feondeFfYNxZ8SztHM0PReIbXi3dUTEcx6m2afnuwEsuaIuJCWN3bDazn7WY6j6hCJGJwwA12H71zKjVPyRbIgBdre5c+7EPiv0w4YavvNUEbY2oiCPWmK5V678sq8DLqAAYsu+vKKJah4bf1ErLexc/mH83TeuFAaG/A2qWmqRkUk5+RHkLGwj92jHNlYTy2Lt2Kubp8hzK35vpvcQagU2Com4yiFBHwcjO2 X-MS-Exchange-AntiSpam-MessageData: 50sEN5dpNldzM+Rp9BI6K1XXOz5sxQhlIqeHXgZwKtddCm12BKq1HQA9S67VgW3dhUVBPsHH3JL7cYUqoN+rUPCPoDy0wT2+PLFuJOtKRLfv2TWUv/uCYeTrllkkkUw2Hbf5txGmVnOgE227Y9YAZQ== X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8e8f040-1375-42a8-9ea1-08d7e80c5d51 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2020 05:00:10.3063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K9YvWzndkEXMPKxApLWUkTIkdnaQJsdarxr/gc+9I9+VOV4wJwPaa0zPgA/a5bvOKw4HGtLe+4a+7YxukhZm0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB5467 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series is factored-out from the KVM RISC-V v11 series and is based upon Linux-5.7-rc2. These patches are mostly preparatory changes in Linux RISC-V kernel which we require for KVM RISC-V implementation. Also, most of these patches are already reviewed as part of original KVM RISC-V series. Anup Patel (3): RISC-V: Export riscv_cpuid_to_hartid_mask() API RISC-V: Add bitmap reprensenting ISA features common across CPUs RISC-V: Remove N-extension related defines arch/riscv/include/asm/csr.h | 3 -- arch/riscv/include/asm/hwcap.h | 22 +++++++++ arch/riscv/kernel/cpufeature.c | 83 ++++++++++++++++++++++++++++++++-- arch/riscv/kernel/smp.c | 2 + 4 files changed, 104 insertions(+), 6 deletions(-) -- 2.25.1