From patchwork Fri Apr 29 15:36:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 1624410 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=GWVwOU+B; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=iLgRz1NC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kqc6T2vccz9sBB for ; Sat, 30 Apr 2022 01:36:49 +1000 (AEST) 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=ghsBs1kJVZzpH/xHuCxEAklXILGDxSR1fZrxzVce/4Q=; b=GWVwOU+BFwDjGn CJEhzitkmT/Eb0VdAv34DvBg28CPK0c5YpuWs2yFcX/6OiDmVmRFWDJlwei/dgLJJF9lh1NGXllRN C8wC/VwrQcYHyF4hi2wIRzPuQ1qLhKrqhmQ/OkdF46UqFut4pPMEQ5UnhpnwAYI0TJo9oKiPf6b0x VNLiQZu+WzF0PZwfoYh1MX8ygX3X23JsK8Df0OM0kvsafwopr0JaJe5Aio3sFBfz8wM7GLJIRb3iu S3YvZHoHhfc50GTWWhecKDMFiGQnjqnz8b7YqWj6ZGRysKQ9N62BkPFdgso+lqrez9TzPQ5kMCFe5 IfusU+Oanz+vCvSJVu7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkSfT-00BnPL-P6; Fri, 29 Apr 2022 15:36:27 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkSfR-00BnOH-5K for linux-arm-kernel@lists.infradead.org; Fri, 29 Apr 2022 15:36:26 +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 dfw.source.kernel.org (Postfix) with ESMTPS id DDB30621F9; Fri, 29 Apr 2022 15:36:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49B66C385A7; Fri, 29 Apr 2022 15:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651246581; bh=BAgz6vYtSujJ/yUysgj+N8ugRgXzdEi+Mw7D0wyLeiY=; h=From:To:Cc:Subject:Date:From; b=iLgRz1NCf3HCJlCsT34FlyrY375tBr2mgNMV87dGuI0zj9N8pag/ky7noWuO6b6x9 xfg5nx2D6jBBnNSHfO1KZw+w/qBVt1o7V5RQbtjpEgYfrrjohPZPr0MgfU6wyJPlxb 0fPq3TUluj5H0pt72CyvpyD0xt+xKB7gWHxUDd58OC8gUgln/kuQmFdZcjDidOkH8K vSkCzVQjnZQFw2UMijH5XXtI6kxpTnjxmZxAPYWsj6J/lWECz+Fa1lEpisx4DyasJ6 JBngxjusFW0I58PWnCzilB7GfTInrKxqQQhxQ0CQUguttLEiY4z1zElFpgKGroAer9 lDSyN7igAf3oQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nkSfK-007ySy-OM; Fri, 29 Apr 2022 16:36:18 +0100 From: Marc Zyngier To: Paolo Bonzini Cc: Alexandru Elisei , Christoffer Dall , Quentin Perret , Will Deacon , James Morse , Suzuki K Poulose , kernel-team@android.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [GIT PULL] KVM/arm64 fixes for 5.18, take #2 Date: Fri, 29 Apr 2022 16:36:15 +0100 Message-Id: <20220429153615.710743-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, alexandru.elisei@arm.com, christoffer.dall@arm.com, qperret@google.com, will@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, kernel-team@android.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.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-20220429_083625_315151_110D21DA X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Paolo, Here's a trio of fixes for 5.18. Nothing terribly interesting, but nonetheless important fixes (two of the bugs are related to AArch32). Please pull, Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [2604:1380:4641:c500:0:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Paolo, Here's a trio of fixes for 5.18. Nothing terribly interesting, but nonetheless important fixes (two of the bugs are related to AArch32). Please pull, M. The following changes since commit 21db83846683d3987666505a3ec38f367708199a: selftests: KVM: Free the GIC FD when cleaning up in arch_timer (2022-04-07 08:46:13 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.18-2 for you to fetch changes up to 85ea6b1ec915c9dd90caf3674b203999d8c7e062: KVM: arm64: Inject exception on out-of-IPA-range translation fault (2022-04-27 23:02:23 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 5.18, take #2 - Take care of faults occuring between the PARange and IPA range by injecting an exception - Fix S2 faults taken from a host EL0 in protected mode - Work around Oops caused by a PMU access from a 32bit guest when PMU has been created. This is a temporary bodge until we fix it for good. ---------------------------------------------------------------- Alexandru Elisei (1): KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set Marc Zyngier (1): KVM: arm64: Inject exception on out-of-IPA-range translation fault Will Deacon (1): KVM: arm64: Handle host stage-2 faults from 32-bit EL0 arch/arm64/include/asm/kvm_emulate.h | 1 + arch/arm64/kvm/hyp/nvhe/host.S | 18 +++++++++--------- arch/arm64/kvm/inject_fault.c | 28 ++++++++++++++++++++++++++++ arch/arm64/kvm/mmu.c | 19 +++++++++++++++++++ arch/arm64/kvm/pmu-emul.c | 23 ++++++++++++++++++++++- 5 files changed, 79 insertions(+), 10 deletions(-)