From patchwork Wed Aug 14 12:34:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13763441 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 608A7C3DA4A for ; Wed, 14 Aug 2024 12:35: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=uUW8x3KhauzHPxTSvJIJzUwAcvf30qDoqbLwHHhvKZI=; b=W+xDL1+iYFJF0hoOr6B7hQ3Oe2 aRY5cXiHEo5iMHOzlkk3XTr9uL+6Mi3Ma72KQGs59faWgCDdK3LPjk2/cb18AuPFD8Ap67oi3dBB+ rHH7GmxZWlIv5ZSra9D6WDDS6IHzqC+idYULpb2NhvYHUsi5zhlrUggVdLn6BnbGYyV8ZFbZh3s3S 9fBA7SP/IFEhfzrOeyuC4lMsFfIvBLJ+PoS4UGoqfHY1V/njcitGS2SWtpbJtbpjQTpAXpm2toYmJ mP65SVqL69AW+AfQTn0ICNF+bAhmR+WI/cvpshJyHkKcUjJVFTBMEgEi/HDSvazNVvqyfRvwv2DOk 2gvbDj9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seDDh-00000006wwM-3vOa; Wed, 14 Aug 2024 12:35:17 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seDD4-00000006wsR-05Iz for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2024 12:34:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 7249BCE10B9; Wed, 14 Aug 2024 12:34:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BD4EC32786; Wed, 14 Aug 2024 12:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723638874; bh=Ro9obe4GzgZcpGLQoFXEVVhiEoxNfb65EYTdSVyz9GY=; h=From:To:Cc:Subject:Date:From; b=PpMWxe8XdI4tFK9XH8NujOiuE5a6TJuOYX+1AKoJ38YOnXxQ66OZZmlPUiSVtZ2qs A25HkmZ5Z9X90C53+zG9KOKCnDJvIMDuVkNVE5e09BdHXU6+TatwTvqm/L0hdmXzyb HFfZvWeuRyu5bGM2/r/rdAaXXR9dGpneKkPXNNOVIe7krmYCqfUKmZcGMnL3tD1jhb NhaOyNenZ/NNTiDCsFa7OrB6uyi3iPMN8pHnodpgruP5vW4yLhhv0oRRixh92MhLoj JbJo29oAry7Cjnm8Sirw1a7zu5LkDagLzI3FzbWERbtfJXMK3ZqI0Oo4ehSozqIM3/ TkxSrk3Za3OIw== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Marc Zyngier , Oliver Upton , Fuad Tabba , kvmarm@lists.linux.dev Subject: [PATCH 0/2] KVM: arm64: Fix a couple of pKVM/nVHE TLB invalidation bugs Date: Wed, 14 Aug 2024 13:34:27 +0100 Message-Id: <20240814123429.20457-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-20240814_053438_433044_AFCF42EE X-CRM114-Status: UNSURE ( 7.97 ) 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, These two patches fix a couple of TLB invalidation bugs in pKVM. The first one was spotted by inspection while I was debugging a crash which turned out to be caused by the second problem. Feedback welcome. Cheers, Will Cc: Marc Zyngier Cc: Oliver Upton Cc: Fuad Tabba Cc: kvmarm@lists.linux.dev --->8 Will Deacon (2): KVM: arm64: Invalidate EL1&0 TLB entries for all VMIDs in nvhe hyp init KVM: arm64: Ensure TLBI uses correct VMID after changing context arch/arm64/kvm/hyp/nvhe/hyp-init.S | 2 +- arch/arm64/kvm/hyp/nvhe/tlb.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)