]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Rename 'host_kvm' to 'kvm' in pKVM host code
authorFuad Tabba <tabba@google.com>
Tue, 9 Sep 2025 07:24:30 +0000 (08:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 15 Sep 2025 09:46:55 +0000 (10:46 +0100)
commit604a5032b454bde03200d755f6ecc3f724511c6a
treebe758c2c4dd2b6b6baed4ee92632eb3560d6bc80
parent58dfb66b1e4cfb998db9e71437a2c0d9b83a93c0
KVM: arm64: Rename 'host_kvm' to 'kvm' in pKVM host code

In hypervisor (EL2) code, it is important to distinguish between the
host's 'struct kvm' and a protected VM's 'struct kvm'. Using 'host_kvm'
as variable name in that context makes this distinction clear.

However, in the host kernel code (EL1), there is no such ambiguity. The
code is only ever concerned with the host's own 'struct kvm' instance.
The 'host_' prefix is therefore redundant and adds unnecessary
verbosity.

Simplify the code by renaming the 'host_kvm' parameter to 'kvm' in all
functions within host-side kernel code (EL1). This improves readability
and makes the naming consistent with other host-side kernel code.

No functional change intended.

Signed-off-by: Fuad Tabba <tabba@google.com>
Tested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/pkvm.c