From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1690BC43460 for ; Thu, 8 Apr 2021 13:12:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A609161151 for ; Thu, 8 Apr 2021 13:12:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A609161151 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=a5bNINKeqO5Gx0ytbTiJSmjxLBga/KYn6DmMWd0iSv4=; b=IdDnt0b8ZqW/DPqZpOtR1P4wyg bhsOAG3laospqOMXuWxeGGRaIRd3fucikyQzdX7vdxRocA8PuLR6AbICV3dJDIlTheUOBM/OVrpuR N1UHj4rBw/rArFtO2IPjpdwj7xYAk/eB1nx+wb3s2qkV0UKwNg54Q5aK6KXvLC+dm/kpIibYwIujU +qo2h6e1WMBRo+Om4TOxRbh5uAin0liwblUGda3wp/VIctoLYZmGl3ixWQMgY3RDjYif8mnKQeytr tUKPnX1ibKExwDYTg8Umve5p/8ivx64mz+E85yY13YME3JlBndBJH7V/6sfc6I8HyTc21XbfMRGWZ NoMlX46A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUUQe-0084eh-Bo; Thu, 08 Apr 2021 13:10:36 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUUQR-0084d4-LJ for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 13:10:25 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 257526113C; Thu, 8 Apr 2021 13:10:21 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lUUQM-006JMB-V7; Thu, 08 Apr 2021 14:10:19 +0100 From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org Cc: Hector Martin , Arnd Bergmann , Mark Rutland , Will Deacon , Catalin Marinas , kernel-team@android.com Subject: [PATCH v3 0/3] arm64: Dealing with VHE-only CPUs Date: Thu, 8 Apr 2021 14:10:07 +0100 Message-Id: <20210408131010.1109027-1-maz@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: linux-arm-kernel@lists.infradead.org, marcan@marcan.st, arnd@kernel.org, mark.rutland@arm.com, will@kernel.org, catalin.marinas@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_141024_063808_E46E1DA8 X-CRM114-Status: GOOD ( 16.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This short series is a rewrite of [0] after some reviewing from Will. It simplifies the esoteric "stay at EL2" path, and move the feature override code where it actually belongs, allowing us to tell the user that no, nVHE isn't a thing on these system. The last patch rids us of CONFIG_ARM64_VHE, which has been the default for longer than I can remember. This allows the infamous M1 to boot (tested on a M1 Mini). Note: the last patch will conflict with the KVM SVE series, so I'd like to take that patch (or the series) via the KVM tree to avoid extra moaning^Wfriction. * From v2 [2]: - Fixed typos and spacing issues - Dropped the mVHE on VHE patch - Added a patch removing the CONFIG_ARM64_VHE option altogether - Collected Ack from Will * From v1 [1]: - added a comment describing the mapping various states the override mask/val tuple can describe - added a patch to prevent KVM from initialising, treating the lack of CONFIG_ARM64_VHE as a mismatched boot [0] https://lore.kernel.org/r/20210304213902.83903-2-marcan@marcan.st [1] https://lore.kernel.org/r/20210325124721.941182-1-maz@kernel.org [2] https://lore.kernel.org/r/20210330173947.999859-1-maz@kernel.org Marc Zyngier (3): arm64: cpufeature: Allow early filtering of feature override arm64: Cope with CPUs stuck in VHE mode arm64: Get rid of CONFIG_ARM64_VHE .../admin-guide/kernel-parameters.txt | 3 +- arch/arm64/Kconfig | 20 ---------- arch/arm64/include/asm/cpufeature.h | 17 ++++++++ arch/arm64/kernel/cpufeature.c | 10 +++-- arch/arm64/kernel/head.S | 39 +++++++++++++++++-- arch/arm64/kernel/hyp-stub.S | 10 ++--- arch/arm64/kernel/idreg-override.c | 26 ++++++++++++- 7 files changed, 89 insertions(+), 36 deletions(-) -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel