From patchwork Thu Oct 17 09:09:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13839658 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 BBD35D21266 for ; Thu, 17 Oct 2024 09:13:19 +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=bkW+lKkwoFPjAfIGs2j2/tsY6mR7V+s6fHybYhwQ0ac=; b=TmMhrpVmNXMS+ZNb7pHFfu/AXN KZyRXSubpgmhbcA+ojnPWEURlY+ZH7wJHI1X2FNkGQuFEEqj8FezWxSDN+V2RYEI7yRkvb9q8gNtD j/rpF2SV7PYKXNX0PG+2anA++DJGTI+opoKTcgAswW4xb5GVLnGzgAjmrvM1gxs0pwcWKy2EZKucr QQ+cX8oc0CjJrOKyhbyLY676o07dUitrxbQfItC+6+QXIfN+J+r+ZSV8MvWz0LZybyP4SFhdrjIiJ Eh+kHx2aNxMIXmc5ennK0NkokViZWAh5tKRbbMi500xwEstI0nACOF+5kt+unWsgdrX6Hps56sHdI n4n5EceQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1MZ8-0000000EI2c-1UMB; Thu, 17 Oct 2024 09:13:06 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1MWP-0000000EHav-0csI for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2024 09:10:18 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 19A6F5C5695; Thu, 17 Oct 2024 09:10:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3379EC4CEC3; Thu, 17 Oct 2024 09:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729156216; bh=gStZKPspN8Fxoe/I4rGMFgtoAkrG2i+KdpQDR/2Cc94=; h=From:To:Cc:Subject:Date:From; b=jFL2iYUw8wTAe8KGzTbJNvjVT9muBruubr2l0pvkK3IQbhlz4kXwFL9lqp9wbsTtX /5Yim3fYLHp8HTV5gGF2I4303DMO7Q+yJqxPKhVEbdQmn55qA2LnBoPY5Gp/UFBifQ NBaP8bktTbFUelSSAuFo3qJ06nwpwEgn3QaxiA1qygLMqs8tml8xODmc/DUarzs/tg cdbPplIH4sglD5GvuM0U4GsHAA+BDlscqdFkptG495cRHGU9uFnUbcFVRL4iXtsjs4 TV174P3QfYE4fU+S8KNZyhtEDKG0TkpXYpioUPlkJ/LjP5odkvzFlJAIkik0uD0Evn MRp3tDXGltYzw== 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 1t1MWM-004O9M-4g; Thu, 17 Oct 2024 10:10:14 +0100 From: Marc Zyngier To: Paolo Bonzini Cc: Anshuman Khandual , Gavin Shan , Ilkka Koskinen , Nathan Chancellor , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [GIT PULL] KVM/arm64 fixes for 6.12, take #3 Date: Thu, 17 Oct 2024 10:09:56 +0100 Message-Id: <20241017090956.954040-1-maz@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: pbonzini@redhat.com, anshuman.khandual@arm.com, gshan@redhat.com, ilkka@os.amperecomputing.com, nathan@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, 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-20241017_021017_330980_64435E2D X-CRM114-Status: UNSURE ( 9.98 ) 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 Paolo, Here's another set of fixes for KVM/arm64, addressing another vgic init race as well as a build error (full details in the tag below). I notice that you haven't pulled [1] yet, so hopefully this will also serve as a gentle reminder. Please pull, M. [1] https://lore.kernel.org/r/20241011132756.3793137-1-maz@kernel.org The following changes since commit df5fd75ee305cb5927e0b1a0b46cc988ad8db2b1: KVM: arm64: Don't eagerly teardown the vgic on init error (2024-10-11 13:40:25 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.12-3 for you to fetch changes up to 78a00555550042ed77b33ace7423aced228b3b4e: KVM: arm64: Ensure vgic_ready() is ordered against MMIO registration (2024-10-17 09:20:48 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 6.12, take #3 - Stop wasting space in the HYP idmap, as we are dangerously close to the 4kB limit, and this has already exploded in -next - Fix another race in vgic_init() - Fix a UBSAN error when faking the cache topology with MTE enabled ---------------------------------------------------------------- Ilkka Koskinen (1): KVM: arm64: Fix shift-out-of-bounds bug Marc Zyngier (1): KVM: arm64: Shave a few bytes from the EL2 idmap code Oliver Upton (2): KVM: arm64: vgic: Don't check for vgic_ready() when setting NR_IRQS KVM: arm64: Ensure vgic_ready() is ordered against MMIO registration arch/arm64/include/asm/kvm_asm.h | 1 + arch/arm64/kernel/asm-offsets.c | 1 + arch/arm64/kvm/hyp/nvhe/hyp-init.S | 52 +++++++++++++++++++---------------- arch/arm64/kvm/sys_regs.c | 2 +- arch/arm64/kvm/vgic/vgic-init.c | 13 +++++++-- arch/arm64/kvm/vgic/vgic-kvm-device.c | 7 ++++- 6 files changed, 49 insertions(+), 27 deletions(-)