]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Rename local "ecx" variables to "msr" and "pmc" as appropriate
authorSean Christopherson <seanjc@google.com>
Thu, 20 Nov 2025 19:07:05 +0000 (14:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 09:37:51 +0000 (10:37 +0100)
commite5779f27981cb6d2bed0db41452d8f6c1a1b28ed
treed3a29148bddbc5d86bb30bb9c92dfd526d0eed8d
parentce0138dced648ddbc9e43b500be2bcaf58aa8c42
KVM: x86: Rename local "ecx" variables to "msr" and "pmc" as appropriate

[ Upstream commit ec400f6c2f2703cb6c698dd00b28cfdb8ee5cdcc ]

Rename "ecx" variables in {RD,WR}MSR and RDPMC helpers to "msr" and "pmc"
respectively, in anticipation of adding support for the immediate variants
of RDMSR and WRMSRNS, and to better document what the variables hold
(versus where the data originated).

No functional change intended.

Link: https://lore.kernel.org/r/20250805202224.1475590-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Stable-dep-of: 9d7dfb95da2c ("KVM: VMX: Inject #UD if guest tries to execute SEAMCALL or TDCALL")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/x86.c