summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm
diff options
context:
space:
mode:
authorDave Martin2019-04-10 18:17:37 +0200
committerMarc Zyngier2019-04-18 18:14:02 +0200
commit92e68b2b1ba004be55b2094fb8b5c11d0b24d11d (patch)
tree4b5d3c72acb18056be7c076b7e140094c0eb36f6 /arch/arm64/kvm
parentKVM: arm64/sve: Explain validity checks in set_sve_vls() (diff)
downloadkernel-qcow2-linux-92e68b2b1ba004be55b2094fb8b5c11d0b24d11d.tar.gz
kernel-qcow2-linux-92e68b2b1ba004be55b2094fb8b5c11d0b24d11d.tar.xz
kernel-qcow2-linux-92e68b2b1ba004be55b2094fb8b5c11d0b24d11d.zip
KVM: arm/arm64: Clean up vcpu finalization function parameter naming
Currently, the internal vcpu finalization functions use a different name ("what") for the feature parameter than the name ("feature") used in the documentation. To avoid future confusion, this patch converts everything to use the name "feature" consistently. No functional change. Suggested-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Dave Martin <Dave.Martin@arm.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/kvm')
-rw-r--r--arch/arm64/kvm/reset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c
index 8847f389f56d..3402543fdcd3 100644
--- a/arch/arm64/kvm/reset.c
+++ b/arch/arm64/kvm/reset.c
@@ -186,9 +186,9 @@ static int kvm_vcpu_finalize_sve(struct kvm_vcpu *vcpu)
return 0;
}
-int kvm_arm_vcpu_finalize(struct kvm_vcpu *vcpu, int what)
+int kvm_arm_vcpu_finalize(struct kvm_vcpu *vcpu, int feature)
{
- switch (what) {
+ switch (feature) {
case KVM_ARM_VCPU_SVE:
if (!vcpu_has_sve(vcpu))
return -EINVAL;