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 Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9777C433FE for ; Wed, 2 Nov 2022 09:10:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 451D94BAB1; Wed, 2 Nov 2022 05:10:58 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nlfbuS-m0XLx; Wed, 2 Nov 2022 05:10:57 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 22FCA4BA6F; Wed, 2 Nov 2022 05:10:57 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 1BA734BA26 for ; Wed, 2 Nov 2022 05:10:55 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dq84oG5JFn5d for ; Wed, 2 Nov 2022 05:10:54 -0400 (EDT) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id CF6604BA13 for ; Wed, 2 Nov 2022 05:10:53 -0400 (EDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 541DCB81AF4; Wed, 2 Nov 2022 09:10:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59FCC433C1; Wed, 2 Nov 2022 09:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667380251; bh=3NBoQ3ldUa+yOxeyENfnkBM2LyM5YloHDrknbDGq34c=; h=From:To:Cc:Subject:Date:From; b=sRjh0cGisFS4038BuCp8168oQUNIM6TzP9MDeK+A0wKFoWjwjVx2qpg6D7I8+JyP1 Nungr/01NBkg9bQ2/wrYS9KsVKk/U/K4phdPtTVG0QfUBI9S6hkvxIYc0qISXh4Uis 2Hk5bYADdWLGMR1Y3b9i9lDzbWHbSbzPNVRPDm7VpDX+g0QHelLg0YN/TCTAVvmVUF PLHc/0axacHTHKo0BLh9V9YdGUVCNYoWS2eyIm3aUtOqC+4Ir+bfQ5htnxgs9vZuun V+hLoiGyqYPG1BbzEfTnZgKIPTf3SPxrHVsBwLvVi8brtpVFTA/O1rAMtPBl/dIIFV bDkug7413Jmfg== 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 1oq9lo-003AWO-FX; Wed, 02 Nov 2022 09:10:48 +0000 From: Marc Zyngier To: Paolo Bonzini Subject: [GIT PULL] KVM/arm64 fixes for 6.1, take #3 Date: Wed, 2 Nov 2022 09:10:36 +0000 Message-Id: <20221102091036.2106882-1-maz@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, catalin.marinas@arm.com, gshan@redhat.com, broonie@kernel.org, oliver.upton@linux.dev, qperret@google.com, ryan.roberts@arm.com, seanjc@google.com, steven.price@arm.com, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Cc: kvm@vger.kernel.org, Catalin Marinas , Steven Price , Mark Brown , kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu Paolo, Here's another set of fixes for 6.1. Two of them are critical fixes (MTE support triggering an invalid pointer dereference in nVHE configurations, SME trapping not enabled in VHE configurations). Thankfully, these configuration are pretty rare, because hardly anyone is making us of MTE yet, and that SME HW simply doesn't exist in the wild. The rest is a limited set of fixes for relatively harmless bugs and documentation update. Please pull, M. The following changes since commit 247f34f7b80357943234f93f247a1ae6b6c3a740: Linux 6.1-rc2 (2022-10-23 15:27:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.1-3 for you to fetch changes up to be0ddf5293a7895a8c9096e1a8560930c6a0ab3f: arm64: booting: Document our requirements for fine grained traps with SME (2022-11-01 19:30:34 +0000) ---------------------------------------------------------------- KVM/arm64 fixes for 6.1, take #3 - Fix the pKVM stage-1 walker erronously using the stage-2 accessor - Correctly convert vcpu->kvm to a hyp pointer when generating an exception in a nVHE+MTE configuration - Check that KVM_CAP_DIRTY_LOG_* are valid before enabling them - Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE - Document the boot requirements for FGT when entering the kernel at EL1 ---------------------------------------------------------------- Gavin Shan (1): KVM: Check KVM_CAP_DIRTY_LOG_{RING, RING_ACQ_REL} prior to enabling them Marc Zyngier (1): KVM: arm64: Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE Mark Brown (1): arm64: booting: Document our requirements for fine grained traps with SME Quentin Perret (1): KVM: arm64: Use correct accessor to parse stage-1 PTEs Ryan Roberts (1): KVM: arm64: Fix bad dereference on MTE-enabled systems Documentation/arm64/booting.rst | 8 ++++++++ arch/arm64/kvm/hyp/exception.c | 3 ++- arch/arm64/kvm/hyp/include/hyp/switch.h | 20 ++++++++++++++++++++ arch/arm64/kvm/hyp/nvhe/mem_protect.c | 2 +- arch/arm64/kvm/hyp/nvhe/switch.c | 26 -------------------------- arch/arm64/kvm/hyp/vhe/switch.c | 8 -------- virt/kvm/kvm_main.c | 3 +++ 7 files changed, 34 insertions(+), 36 deletions(-) _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 505D17ED for ; Wed, 2 Nov 2022 09:10:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59FCC433C1; Wed, 2 Nov 2022 09:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667380251; bh=3NBoQ3ldUa+yOxeyENfnkBM2LyM5YloHDrknbDGq34c=; h=From:To:Cc:Subject:Date:From; b=sRjh0cGisFS4038BuCp8168oQUNIM6TzP9MDeK+A0wKFoWjwjVx2qpg6D7I8+JyP1 Nungr/01NBkg9bQ2/wrYS9KsVKk/U/K4phdPtTVG0QfUBI9S6hkvxIYc0qISXh4Uis 2Hk5bYADdWLGMR1Y3b9i9lDzbWHbSbzPNVRPDm7VpDX+g0QHelLg0YN/TCTAVvmVUF PLHc/0axacHTHKo0BLh9V9YdGUVCNYoWS2eyIm3aUtOqC+4Ir+bfQ5htnxgs9vZuun V+hLoiGyqYPG1BbzEfTnZgKIPTf3SPxrHVsBwLvVi8brtpVFTA/O1rAMtPBl/dIIFV bDkug7413Jmfg== 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 1oq9lo-003AWO-FX; Wed, 02 Nov 2022 09:10:48 +0000 From: Marc Zyngier To: Paolo Bonzini Cc: Catalin Marinas , Gavin Shan , Mark Brown , Oliver Upton , Quentin Perret , Ryan Roberts , Sean Christopherson , Steven Price , James Morse , Suzuki K Poulose , Alexandru Elisei , , , linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Subject: [GIT PULL] KVM/arm64 fixes for 6.1, take #3 Date: Wed, 2 Nov 2022 09:10:36 +0000 Message-ID: <20221102091036.2106882-1-maz@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev 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: pbonzini@redhat.com, catalin.marinas@arm.com, gshan@redhat.com, broonie@kernel.org, oliver.upton@linux.dev, qperret@google.com, ryan.roberts@arm.com, seanjc@google.com, steven.price@arm.com, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Message-ID: <20221102091036.aNh16QD0KJcMR4x2ZfLuA4prvPgXsuWQc_qXlIwFU6s@z> Paolo, Here's another set of fixes for 6.1. Two of them are critical fixes (MTE support triggering an invalid pointer dereference in nVHE configurations, SME trapping not enabled in VHE configurations). Thankfully, these configuration are pretty rare, because hardly anyone is making us of MTE yet, and that SME HW simply doesn't exist in the wild. The rest is a limited set of fixes for relatively harmless bugs and documentation update. Please pull, M. The following changes since commit 247f34f7b80357943234f93f247a1ae6b6c3a740: Linux 6.1-rc2 (2022-10-23 15:27:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.1-3 for you to fetch changes up to be0ddf5293a7895a8c9096e1a8560930c6a0ab3f: arm64: booting: Document our requirements for fine grained traps with SME (2022-11-01 19:30:34 +0000) ---------------------------------------------------------------- KVM/arm64 fixes for 6.1, take #3 - Fix the pKVM stage-1 walker erronously using the stage-2 accessor - Correctly convert vcpu->kvm to a hyp pointer when generating an exception in a nVHE+MTE configuration - Check that KVM_CAP_DIRTY_LOG_* are valid before enabling them - Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE - Document the boot requirements for FGT when entering the kernel at EL1 ---------------------------------------------------------------- Gavin Shan (1): KVM: Check KVM_CAP_DIRTY_LOG_{RING, RING_ACQ_REL} prior to enabling them Marc Zyngier (1): KVM: arm64: Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE Mark Brown (1): arm64: booting: Document our requirements for fine grained traps with SME Quentin Perret (1): KVM: arm64: Use correct accessor to parse stage-1 PTEs Ryan Roberts (1): KVM: arm64: Fix bad dereference on MTE-enabled systems Documentation/arm64/booting.rst | 8 ++++++++ arch/arm64/kvm/hyp/exception.c | 3 ++- arch/arm64/kvm/hyp/include/hyp/switch.h | 20 ++++++++++++++++++++ arch/arm64/kvm/hyp/nvhe/mem_protect.c | 2 +- arch/arm64/kvm/hyp/nvhe/switch.c | 26 -------------------------- arch/arm64/kvm/hyp/vhe/switch.c | 8 -------- virt/kvm/kvm_main.c | 3 +++ 7 files changed, 34 insertions(+), 36 deletions(-) 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 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 42A1FC433FE for ; Wed, 2 Nov 2022 09:11:53 +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=tTLiix4ulfaW4/EtQoZFV8gl+tITabLL+uNslpjmaaQ=; b=R48+0nYebOuJOZ riizrKdu22IDbxVyMiqN87NzkGx3kNuQHBoEc5M4iGqKkOM3mXuacr9+akpTX9wC82abXmn5gkCfR TTsVnataPYhp4V90fh4120P41LPWJ4lJO94JfCDAV7NlcVjVrxC52ecIGTSeyoLYYmTnhQA/LeIYH ji+Xuyjr3vH69nQNRTO2yQdDvJyZdEB2JteRRSdIAPsL/QAWlj42w7O70vMpXkCv4azECbBvRPHCX goUL8RZV/Q8XZ6SqfD7PLfIvqCzqyBQkN9c4goERLKnStzMw9QnN3t1GvvUzmxU6nMigswZlWzwMB vXQ2jqijBtvONVjcYBKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oq9lx-009wFp-PF; Wed, 02 Nov 2022 09:10:57 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oq9lu-009vy4-1X for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2022 09:10:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 541DCB81AF4; Wed, 2 Nov 2022 09:10:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59FCC433C1; Wed, 2 Nov 2022 09:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667380251; bh=3NBoQ3ldUa+yOxeyENfnkBM2LyM5YloHDrknbDGq34c=; h=From:To:Cc:Subject:Date:From; b=sRjh0cGisFS4038BuCp8168oQUNIM6TzP9MDeK+A0wKFoWjwjVx2qpg6D7I8+JyP1 Nungr/01NBkg9bQ2/wrYS9KsVKk/U/K4phdPtTVG0QfUBI9S6hkvxIYc0qISXh4Uis 2Hk5bYADdWLGMR1Y3b9i9lDzbWHbSbzPNVRPDm7VpDX+g0QHelLg0YN/TCTAVvmVUF PLHc/0axacHTHKo0BLh9V9YdGUVCNYoWS2eyIm3aUtOqC+4Ir+bfQ5htnxgs9vZuun V+hLoiGyqYPG1BbzEfTnZgKIPTf3SPxrHVsBwLvVi8brtpVFTA/O1rAMtPBl/dIIFV bDkug7413Jmfg== 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 1oq9lo-003AWO-FX; Wed, 02 Nov 2022 09:10:48 +0000 From: Marc Zyngier To: Paolo Bonzini Cc: Catalin Marinas , Gavin Shan , Mark Brown , Oliver Upton , Quentin Perret , Ryan Roberts , Sean Christopherson , Steven Price , James Morse , Suzuki K Poulose , Alexandru Elisei , , , linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Subject: [GIT PULL] KVM/arm64 fixes for 6.1, take #3 Date: Wed, 2 Nov 2022 09:10:36 +0000 Message-Id: <20221102091036.2106882-1-maz@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, catalin.marinas@arm.com, gshan@redhat.com, broonie@kernel.org, oliver.upton@linux.dev, qperret@google.com, ryan.roberts@arm.com, seanjc@google.com, steven.price@arm.com, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org 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-20221102_021054_414801_6F5D37A4 X-CRM114-Status: GOOD ( 15.10 ) 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 Paolo, Here's another set of fixes for 6.1. Two of them are critical fixes (MTE support triggering an invalid pointer dereference in nVHE configurations, SME trapping not enabled in VHE configurations). Thankfully, these configuration are pretty rare, because hardly anyone is making us of MTE yet, and that SME HW simply doesn't exist in the wild. The rest is a limited set of fixes for relatively harmless bugs and documentation update. Please pull, M. The following changes since commit 247f34f7b80357943234f93f247a1ae6b6c3a740: Linux 6.1-rc2 (2022-10-23 15:27:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.1-3 for you to fetch changes up to be0ddf5293a7895a8c9096e1a8560930c6a0ab3f: arm64: booting: Document our requirements for fine grained traps with SME (2022-11-01 19:30:34 +0000) ---------------------------------------------------------------- KVM/arm64 fixes for 6.1, take #3 - Fix the pKVM stage-1 walker erronously using the stage-2 accessor - Correctly convert vcpu->kvm to a hyp pointer when generating an exception in a nVHE+MTE configuration - Check that KVM_CAP_DIRTY_LOG_* are valid before enabling them - Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE - Document the boot requirements for FGT when entering the kernel at EL1 ---------------------------------------------------------------- Gavin Shan (1): KVM: Check KVM_CAP_DIRTY_LOG_{RING, RING_ACQ_REL} prior to enabling them Marc Zyngier (1): KVM: arm64: Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE Mark Brown (1): arm64: booting: Document our requirements for fine grained traps with SME Quentin Perret (1): KVM: arm64: Use correct accessor to parse stage-1 PTEs Ryan Roberts (1): KVM: arm64: Fix bad dereference on MTE-enabled systems Documentation/arm64/booting.rst | 8 ++++++++ arch/arm64/kvm/hyp/exception.c | 3 ++- arch/arm64/kvm/hyp/include/hyp/switch.h | 20 ++++++++++++++++++++ arch/arm64/kvm/hyp/nvhe/mem_protect.c | 2 +- arch/arm64/kvm/hyp/nvhe/switch.c | 26 -------------------------- arch/arm64/kvm/hyp/vhe/switch.c | 8 -------- virt/kvm/kvm_main.c | 3 +++ 7 files changed, 34 insertions(+), 36 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel