From patchwork Wed Mar 27 12:48:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13606537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4331DC54E67 for ; Wed, 27 Mar 2024 12:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=AB+9t7UaS57n8+SP8FkQ3NKHqtobmcfDGFKvHyEDVh4=; b=qOxFYn5rWM2H9r 8Hbxs+ZhKM4XCbdYA2xhAbTWthAM66J19O6Bez3hFR/ocFlL+JNhTv2/Hts8x2YAcLkriFA6+yAZS +3Ikc68j/0n5OY/8kI7BcV3McheJ4CCa1+wy6/cPgClwNFDNKBVuAiN/c2OFsx0TEZLxR0jdJ0J5P vkYNZjOn5VLaToLfDPTeH+qfDRgousOo3/1JQFDFyB/YD3LUCo/X2cwlLAIGPtolDCAxdGvdhztlQ emgMl178bCFBF2iVLqMGkORJ9lcOu1YnfOzBg8EkuJs9lGEUOdqc3opkEYsV6UL3uotMcwMOc610u GFFB5y6xs+xs1xP0cIeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpSiE-00000008zjB-3rAF; Wed, 27 Mar 2024 12:49:02 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpSiC-00000008ziS-06ST for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2024 12:49:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 68ADC614CD; Wed, 27 Mar 2024 12:48:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0200C433C7; Wed, 27 Mar 2024 12:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711543739; bh=fuAcbl1HUcDciZWkZFFDkTuXy9Ebs9u1HiWJgXNc2Mw=; h=From:To:Cc:Subject:Date:From; b=E36lGumE0/pL970qKfZoqn/wk3TA+5a0Ze+dmjy4b5hS+GEPt04zRkwX43llnpc6U qN5GaUePeJs6dRm0nnXhllrDy3zc+BLQsdVDkj7OtoJDSiAMTbNUWKINAC+8VLnT+U yVqSmK0q5H99tO3rg9YO+4zMHVhAMy8Wg9Wzffz/1P06qG2yN6Wi5GB6MSBPiY8+9T CEEkSXtQPnkVwn8pKGeshIuqI6J06zutHQyOKU2pR15Q7ufQGrUJmp8QMbzqEcUuNk skVfOFHrPnuhErzZ9hsdEt/yM9CgWaj3IRbKxBMEKzPz9ZftDwrpbqiXtiru1DKFwu nZwq43zHfL66w== From: Will Deacon To: kvmarm@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas , Gavin Shan , Marc Zyngier , Mostafa Saleh , Oliver Upton , Quentin Perret , Raghavendra Rao Ananta , Ryan Roberts , Shaoqin Huang Subject: [PATCH v2 0/4] KVM: arm64: TLBI fixes for the pgtable code Date: Wed, 27 Mar 2024 12:48:49 +0000 Message-Id: <20240327124853.11206-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240327_054900_126810_7908F700 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi again, This is version two of the series I previously posted on Monday: https://lore.kernel.org/r/20240325185158.8565-1-will@kernel.org We've got a long weekend coming up in the UK, so I wanted to get this out before I chuck the laptop in the river. Changes since v1 include: * Add Ryan's Reviewed-by on the third patch * Add an extra patch to ensure correct alignment of range TLBI address argument * Tweak commit messages Cheers, Will Cc: Catalin Marinas Cc: Gavin Shan Cc: Marc Zyngier Cc: Mostafa Saleh Cc: Oliver Upton Cc: Quentin Perret Cc: Raghavendra Rao Ananta Cc: Ryan Roberts Cc: Shaoqin Huang --->8 Will Deacon (4): KVM: arm64: Don't defer TLB invalidation when zapping table entries KVM: arm64: Don't pass a TLBI level hint when zapping table entries KVM: arm64: Use TLBI_TTL_UNKNOWN in __kvm_tlb_flush_vmid_range() KVM: arm64: Ensure target address is granule-aligned for range TLBI arch/arm64/kvm/hyp/nvhe/tlb.c | 3 ++- arch/arm64/kvm/hyp/pgtable.c | 23 +++++++++++++++-------- arch/arm64/kvm/hyp/vhe/tlb.c | 3 ++- 3 files changed, 19 insertions(+), 10 deletions(-) Reviewed-by: Marc Zyngier Reviewed-by: Shaoqin Huang