From patchwork Mon Mar 25 18:51:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13602762 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 41B3FC54E58 for ; Mon, 25 Mar 2024 18:52:28 +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=YjmwdwOWL5fXhbGrlEF2uv1l4CyQfsLqsD8gtsuo3Yw=; b=qE9I/3ZlCoubVS 7sTdyFKIZJXd8lEwCFf6TdR0m9uMog25qYo6Q8yvCflqywpCsOzvghgtnnNV7iTFnCy8Svc9ulz0L scwnFN/fmnOPY0dwgyJyk+H+1fBdyK72GtymdeAjtQ3xzjQvz6EqXFeAfqi+lC8gZ1c8sYJ7XOdBo Ee0ewMDLsnbljgpGR9mOBoF+RAI4+kqb0NMrxi2JsCE6tkT3FkB35txJhW6PyMHzfVTRGJl6oPtF8 CvaPFGiHJ336cE1Z4UoxKuB1OyYpY5bg89QEKbcALCFtsnDdKaUIeNleFNHUrdmjTOuG0TvGt543y mLEbbGu7RyC3v3Lww/6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ropQa-00000001Rqi-1vaY; Mon, 25 Mar 2024 18:52:12 +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 1ropQW-00000001RpC-2XZ7 for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2024 18:52:10 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6D81E61136; Mon, 25 Mar 2024 18:52:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AC37C433C7; Mon, 25 Mar 2024 18:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711392726; bh=g8uz/U8Njg1WxnGlsVM2zF+urx9kV1G9+8S/QPAj/UQ=; h=From:To:Cc:Subject:Date:From; b=mKAqW91SJoDN1UFTN1KWAL1kqmdfmln5/PCgIYh6/hWqVcYcLOfLXZnNK0Tj4PCii Q01oeVZ50iyIVZpmxSKATs24jkpYQyQltl1JRU8LPisn7MakU4W8SSnmWfnUAZ7g+b AZy8uEEBYwgeLrjAORJ6URoT25rFkOtNiUIptSe/q3dFmuAuTLLMw/HhmgemHytb2h lWruvMZHHAk/H4xWccAkg7sTeA2y0EOYeIsMeKw4QIiLgI9wkZbT4AAi7vvUAjGrOB ynTz842nOUBmrlTKNdU6aRXgbHey77fEIWWaiwo03Tg/3TAM7lPrDapzDn3Ij773Rk EhhwPaimfVB3g== 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 , Suzuki K Poulose , Zenghui Yu Subject: [PATCH 0/3] KVM: arm64: TLBI fixes for the pgtable code Date: Mon, 25 Mar 2024 18:51:55 +0000 Message-Id: <20240325185158.8565-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-20240325_115208_742711_96F0CEEB X-CRM114-Status: UNSURE ( 8.11 ) 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 folks, While debugging something else, I noticed a few TLBI oddities in KVM's page-table code. These were found by inspection, so please have a good look as I may be mistaken. Patches against -rc1. 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 Cc: Suzuki K Poulose Cc: Zenghui Yu --->8 Will Deacon (3): 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() arch/arm64/kvm/hyp/nvhe/tlb.c | 3 ++- arch/arm64/kvm/hyp/pgtable.c | 12 ++++++++---- arch/arm64/kvm/hyp/vhe/tlb.c | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-)