From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F8B515AD2; Mon, 27 Nov 2023 17:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t4oJxuHW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F5EC433C7; Mon, 27 Nov 2023 17:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701106003; bh=qdeoSw739uXFASMVA2HUXjXYhsiy55zqSkbdaliIcjk=; h=From:To:Cc:Subject:Date:From; b=t4oJxuHWhnuU4+niH/KrsMaZq138qhMwrY/GrWhRXT7zdKOElkMnj867MX65TZ3Z8 BDvW4S01Pf9dwMHBI1Q2YCkIlYiZAbnNlNV813pa3H1sJFksljNhKJJlqKhqtXKsEh xr4nenZE+SdlvRR4Ro8czvbtBC6wxWEKPZgmqD0X94amV9PaVWUMf3Pid11dQhwGmd QU93HPeAQp0CSB+p9KjXApZ2azSfQg2bXqXX2/E3yHDlKPxfQPESRf2cMBsbIHOrIX +cyTkmAq53hoxHWM1wtceG6ejjpn6QiGroJae07iBJuA6Dud5QvKS7134u4+lO1cIm uVhndnczzpJjg== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1r7fNZ-00GsGj-8h; Mon, 27 Nov 2023 17:26:41 +0000 From: Marc Zyngier To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Cc: Will Deacon , Catalin Marinas , Mark Rutland , Ard Biesheuvel , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Subject: [PATCH v2 0/3] arm64: Drop support for VPIPT i-cache policy Date: Mon, 27 Nov 2023 17:26:10 +0000 Message-Id: <20231127172613.1490283-1-maz@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, will@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, ardb@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false ARMv8.2 introduced support for VPIPT i-caches, the V standing for VMID-tagged. Although this looks like a reasonable idea, no implementation has ever made it into the wild. Linux has supported this for over 6 years (amusingly, just as the architecture was dropping support for AVIVT i-caches), but we had no way to even test it, and it is likely that this code was just bit-rotting. However, in a recent breakthrough (XML drop 2023-09, tagged as d55f5af8e09052abe92a02adf820deea2eaed717), the architecture has finally been purged of this option, making VIPT and PIPT the only two valid options. This really means this code is just dead code. Nobody will ever come up with such an implementation, and we can just get rid of it. Most of the impact is on KVM, where we drop a few large comment blocks (and a bit of code), while the core arch code loses the detection code itself. Marc Zyngier (3): KVM: arm64: Remove VPIPT I-cache handling arm64: Kill detection of VPIPT i-cache policy arm64: Rename reserved values for CTR_EL0.L1Ip arch/arm64/include/asm/cache.h | 6 ---- arch/arm64/include/asm/kvm_mmu.h | 7 ---- arch/arm64/kernel/cpuinfo.c | 5 --- arch/arm64/kvm/hyp/nvhe/pkvm.c | 2 +- arch/arm64/kvm/hyp/nvhe/tlb.c | 61 -------------------------------- arch/arm64/kvm/hyp/vhe/tlb.c | 13 ------- arch/arm64/tools/sysreg | 5 +-- 7 files changed, 4 insertions(+), 95 deletions(-) -- 2.39.2