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 43736468A for ; Sun, 12 Mar 2023 15:04:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDE5BC433EF; Sun, 12 Mar 2023 15:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678633481; bh=SIbdBH9Uorm6WV2JXyDFkVvV/YHzzNhbijI2zG9qjMI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kBoRg8lSwnTkyb6jB9jdUDkUmhUY/nCNWiP8ZDjDYbW+i1tvA1z4TYUtfmErSzGU+ fz1074/YtaeKKV78T887jNR14pXnUrfFioy3VCLGYs3C13YiqrqabVDkXgeLG07+VV 5kaM5RhRt5AdBLCSF9gOiDJAY04vjdA2qlZVNnMHBhqABc3IYslNdBQBthazJzpT5h WAy1PAWFO/ystsPptbzsff+Ab4fTh5ef0yGQe0vUcWyGEFEIap6yCdIY6bBWdVrbUL x0F854DpNdSSPp/0G3khbo/GltVy9HtaW1pQ0kWi+frFgQjtHQxkbKKdwAbTZHcSTJ F4XCpRWlezQQQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pbNFX-00H0y3-Ma; Sun, 12 Mar 2023 15:04:39 +0000 Date: Sun, 12 Mar 2023 15:04:39 +0000 Message-ID: <87wn3m3ta0.wl-maz@kernel.org> From: Marc Zyngier To: Reiji Watanabe Cc: Oliver Upton , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, James Morse , Alexandru Elisei , Zenghui Yu , Suzuki K Poulose , Paolo Bonzini , Ricardo Koller , Jing Zhang , Raghavendra Rao Anata , Will Deacon Subject: Re: [PATCH 0/2] KVM: arm64: PMU: Preserve vPMC registers properly on migration In-Reply-To: <20230302055033.3081456-1-reijiw@google.com> References: <20230302055033.3081456-1-reijiw@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: reijiw@google.com, oliver.upton@linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, alexandru.elisei@arm.com, yuzenghui@huawei.com, suzuki.poulose@arm.com, pbonzini@redhat.com, ricarkol@google.com, jingzhangos@google.com, rananta@google.com, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 02 Mar 2023 05:50:31 +0000, Reiji Watanabe wrote: > > The series fixes two problems in preserving vPMU counter (vPMC) > registers (PMCCNTR_EL0/PMEVCNTR_EL0) during migration. > > One of the problems is that KVM may not return the current values > of the vPMC registers for KVM_GET_ONE_REG. > > The other one might cause KVM to reset the vPMC registers on the > first KVM_RUN on the destination. This is because userspace might > save PMCR_EL0 with PMCR_EL0.{C,P} bits set on the source, and > restore it on the destination. This looks good to me. Can you please add the relevant Fixes: tags and a Cc: to stable? With that, that'd be a candidate for -rc3, I think. Thanks, M. -- Without deviation from the norm, progress is not possible.