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 5D58AC433C1 for ; Tue, 30 Mar 2021 17:41:56 +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 F2B0861953 for ; Tue, 30 Mar 2021 17:41:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2B0861953 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=97wXo9jovpuXSu/bdRkjTskmNg/RYwbFP2Y0L99zr+0=; b=dMnhWUq5UKj7rCwFgEwi/Wmr0b f3ojotIht2nJ1G6gXQqIcgVMRti0nErPQNh5e/1FvN7Gd4ahYDSbyniRH0iG0M7CaFifxAQvynOYg RxEa77+9VKeEjTPy72YMDXlTAelHPEzCywb8ku900lpHFPiIFBSLxODy1ro/1fHYrxIuxvjx9FYch L8rAtswxOhnRq94gB0EWbhoMObDq868Yl72nvGED4/HeEqdgapx3HTTj0pCtmjDTnazEhHHQulaCb RZMsvQ/hi4mXMM/C1BnUA1SCxCQorPq5VTAha8UWgIDXcpaP2uwOhdYx+e5ZGYm62/2qYx85FCYe2 9snI8ewQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRILp-004TLB-Bl; Tue, 30 Mar 2021 17:40:25 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRILc-004TJD-8V for linux-arm-kernel@lists.infradead.org; Tue, 30 Mar 2021 17:40:15 +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 66ACB61953; Tue, 30 Mar 2021 17:40:10 +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 1lRILX-004k1X-1W; Tue, 30 Mar 2021 18:40:07 +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 v2 0/3] arm64: Dealing with VHE-only CPUs Date: Tue, 30 Mar 2021 18:39:44 +0100 Message-Id: <20210330173947.999859-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-20210330_184013_360401_9D1586CE X-CRM114-Status: GOOD ( 13.58 ) 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. Additional bonus: the box can now boot without CONFIG_ARM64_VHE (and without KVM, of course), though that's a pretty weird state. This allows the infamous M1 to boot (tested on a M1 Mini). Hector, feel free to pull these two patches as a preamble to the next version of your series, though I'd expect this to go via the arm64 tree for obvious reasons. * 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 lact 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 Marc Zyngier (3): arm64: cpufeature: Allow early filtering of feature override arm64: Cope with CPUs stuck in VHE mode arm64: Allow nVHE impaired CPUs to boot without CONFIG_ARM64_VHE arch/arm64/include/asm/cpufeature.h | 17 +++++++++++++ arch/arm64/include/asm/virt.h | 18 +++++++++---- arch/arm64/kernel/cpufeature.c | 6 +++++ arch/arm64/kernel/head.S | 39 ++++++++++++++++++++++++++--- arch/arm64/kernel/hyp-stub.S | 8 +++--- arch/arm64/kernel/idreg-override.c | 26 ++++++++++++++++++- arch/arm64/kvm/va_layout.c | 9 +++++++ 7 files changed, 110 insertions(+), 13 deletions(-) -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel