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 36A5EC7EE45 for ; Thu, 8 Jun 2023 15:53:38 +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=BbY6D3lLwcvAM3Ywpp972xZbOCdbPv0VDn0JMV77520=; b=Hz5nk8mhD3ZdnH KhlP4rVgCJ+JAPIyoBP3RhHtX3baSvpSXMDUBWdTcvJwyc+XTnrmKmfejueEFM1S1bE70piq/7eEI vhOalXMqOC6Xipy0OQvrV1ax9qdu/RUBzU0Xk1fbArXMFqsygHXz6RB6niE7OPrqvxYMOWNBN03LW slRFa7lg4uYdacooq05MYZhwqtos6pM+OZnj+Z2iUUy0jCfdOlup4gpEKTkFppst1ohPYI3YLM5v0 x13E4UenkgcD6PlBhUSwZj9p2Pi4oF6LbyD8DBVzSHXDdeFQ/zKxdEwuggOCaMBZ10XPRHQcp5Ijy VKRKYb1fV6Rj38wfht4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7Hwm-009ndW-2E; Thu, 08 Jun 2023 15:53:12 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q7Hwj-009nc6-24 for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2023 15:53:11 +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 67A4F6160D; Thu, 8 Jun 2023 15:53:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC887C433EF; Thu, 8 Jun 2023 15:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686239587; bh=eM0r7LYZ4B4QPeMwyPpJr5eyhDkivEWbzbqklj2jVoY=; h=From:To:Cc:Subject:Date:From; b=R3qgBH2Yr4nTEIq4BcMwCHY14gD1SdwiSYB3GWouB0FG1t1/qLlvMFEbHAoQwL0xm R7GeVeRb9mmTaGFCsHU8zErJDofuWe2HYa7HKN78H1UJBsCKtCd3MrB6SdiGEsUEF8 lhAESqDwYtPzRlyqAZDmE+53i1LxibM6hubEaZ9V4CaTTt2AIDPncvrEx8HIh2jwWo Ui8CBvTKCMM/6ZZKPNlIsvCk+Aj6tyUFmVEoetcALcWRVS+UAAdaKux2upPTVWrgF6 SuvqDUhMU1IcGaLj/OL3C7kCpmD/iIIPFxMevyc+gyvYt0IiSOgZAMQg1Vl4VcqTC4 yJAlKLGKvBZwA== 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 1q7Hwf-003pzj-GO; Thu, 08 Jun 2023 16:53:05 +0100 From: Marc Zyngier To: Paolo Bonzini Cc: Mark Rutland , Nathan Chancellor , Oliver Upton , Reiji Watanabe , Sebastian Ott , James Morse , Suzuki K Poulose , Zenghui Yu , kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Subject: [GIT PULL] KVM/arm64 fixes for 6.4, take #4 Date: Thu, 8 Jun 2023 16:52:55 +0100 Message-Id: <20230608155255.1850620-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, mark.rutland@arm.com, nathan@kernel.org, oliver.upton@linux.dev, reijiw@google.com, sebott@redhat.com, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, 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-20230608_085309_771278_36F1425B X-CRM114-Status: GOOD ( 12.72 ) 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 yet another batch of fixes, two of them addressing pretty recent regressions: GICv2 emulation on GICv3 was accidently killed, and the PMU rework needed some tweaking. The last two patches address an annoying PMU (again) problem where the KVM requirements were never factored in when PMU counters were directly exposed to userspace. Reiji has been working on a fix, which is now readdy to be merged. Please pull, M. The following changes since commit 40e54cad454076172cc3e2bca60aa924650a3e4b: KVM: arm64: Document default vPMU behavior on heterogeneous systems (2023-05-31 10:29:56 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.4-4 for you to fetch changes up to 30c60dda219ddda0bc6ff6ac55d493d9db8be4fa: KVM: arm64: Use raw_smp_processor_id() in kvm_pmu_probe_armpmu() (2023-06-07 16:48:34 +0100) ---------------------------------------------------------------- KVM/arm64 fixes for 6.4, take #4 - Correctly save/restore PMUSERNR_EL0 when host userspace is using PMU counters directly - Fix GICv2 emulation on GICv3 after the locking rework - Don't use smp_processor_id() in kvm_pmu_probe_armpmu(), and document why... ---------------------------------------------------------------- Marc Zyngier (1): KVM: arm64: Restore GICv2-on-GICv3 functionality Oliver Upton (1): KVM: arm64: Use raw_smp_processor_id() in kvm_pmu_probe_armpmu() Reiji Watanabe (2): KVM: arm64: PMU: Restore the host's PMUSERENR_EL0 KVM: arm64: PMU: Don't overwrite PMUSERENR with vcpu loaded arch/arm/include/asm/arm_pmuv3.h | 5 +++++ arch/arm64/include/asm/kvm_host.h | 7 +++++++ arch/arm64/kvm/hyp/include/hyp/switch.h | 15 +++++++++++++-- arch/arm64/kvm/hyp/vhe/switch.c | 14 ++++++++++++++ arch/arm64/kvm/pmu-emul.c | 20 +++++++++++++++++++- arch/arm64/kvm/pmu.c | 27 +++++++++++++++++++++++++++ arch/arm64/kvm/vgic/vgic-init.c | 11 +++++++---- drivers/perf/arm_pmuv3.c | 21 ++++++++++++++++++--- 8 files changed, 110 insertions(+), 10 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel