From patchwork Thu Sep 14 14:48:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 13385524 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A88CEEAA4F for ; Thu, 14 Sep 2023 14:48:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240440AbjINOsk (ORCPT ); Thu, 14 Sep 2023 10:48:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240486AbjINOsZ (ORCPT ); Thu, 14 Sep 2023 10:48:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8311A1FFD for ; Thu, 14 Sep 2023 07:48:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC38BC433B6; Thu, 14 Sep 2023 14:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694702901; bh=elTaVfoRjBAQ+RlyBd8HEpdgL87y4NjXRY4zEkFLP1A=; h=From:To:Cc:Subject:Date:From; b=TW6Bym8Oh7v/18JtJe1Xo1GeJcM/NCNKRtV6UTvMcKZUB53s0atl+kO/tVpcN1OEa RZQfCpdY5U8mdymgvBzDLhOLwamo1tzsKEgRRj5729G3kSoWTCn1aoJFRzmYu1HgEz Yz7y6b8ADrybcFFw8o3HQHmNyVEfHwVBUpnGCMCK7c5I6vXOtqXzl5emY80kzglrQ+ MqK7hNnIvL5U/Eltu0Kvj3iU9Dsd25SyKwHNSoWDgNN/rOnoAwAWVF0b0i1MERn1ZA i200P8K+SLDQTqb/cqpf3Jb1Z8zMUn4WluPdESBbSonmrvzd8yYBoc3BMz93Y96hwB Etr0lOC2GMj2A== 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 1qgndi-00Cx4Y-8z; Thu, 14 Sep 2023 15:48:18 +0100 From: Marc Zyngier To: Paolo Bonzini Cc: Ben Horgan , Jean-Philippe Brucker , Marek Szyprowski , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Vincent Donnefort , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [GIT PULL] KVM/arm64 fixes for 6.6, take #1 Date: Thu, 14 Sep 2023 15:48:02 +0100 Message-Id: <20230914144802.1637804-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, ben.horgan@arm.com, jean-philippe@linaro.org, m.szyprowski@samsung.com, philmd@linaro.org, vdonnefort@google.com, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, 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 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Paolo, Here's the first set of fixes for 6.6, addressing two regressions: use of uninitialised memory as a VA to map the GICv2 CPU interface at EL2 stage-1, and a SMCCC fix covering the use of the SVE hint. Please pull., M. The following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d: Linux 6.6-rc1 (2023-09-10 16:28:41 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.6-1 for you to fetch changes up to 373beef00f7d781a000b12c31fb17a5a9c25969c: KVM: arm64: nvhe: Ignore SVE hint in SMCCC function ID (2023-09-12 13:07:37 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 6.6, take #1 - Fix EL2 Stage-1 MMIO mappings where a random address was used - Fix SMCCC function number comparison when the SVE hint is set ---------------------------------------------------------------- Jean-Philippe Brucker (1): KVM: arm64: nvhe: Ignore SVE hint in SMCCC function ID Marc Zyngier (1): KVM: arm64: Properly return allocated EL2 VA from hyp_alloc_private_va_range() arch/arm64/include/asm/kvm_hyp.h | 2 +- arch/arm64/kvm/hyp/include/nvhe/ffa.h | 2 +- arch/arm64/kvm/hyp/nvhe/ffa.c | 3 +-- arch/arm64/kvm/hyp/nvhe/hyp-init.S | 1 + arch/arm64/kvm/hyp/nvhe/hyp-main.c | 8 ++++++-- arch/arm64/kvm/hyp/nvhe/psci-relay.c | 3 +-- arch/arm64/kvm/mmu.c | 3 +++ include/linux/arm-smccc.h | 2 ++ 8 files changed, 16 insertions(+), 8 deletions(-)