diff options
author | Oliver Upton <oupton@google.com> | 2022-05-04 03:24:38 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-05-04 09:28:45 +0100 |
commit | 1c6219e3faf12e58d520b3b2cdfa8cd5e1efc9a5 (patch) | |
tree | 67c4aac54ce896e76401a5e06d25f136b7a4542c | |
parent | b171f9bbb130cb323f2101edd32da2a25d43ebfa (diff) | |
download | linux-stable-1c6219e3faf12e58d520b3b2cdfa8cd5e1efc9a5.tar.gz linux-stable-1c6219e3faf12e58d520b3b2cdfa8cd5e1efc9a5.tar.bz2 linux-stable-1c6219e3faf12e58d520b3b2cdfa8cd5e1efc9a5.zip |
KVM: arm64: Rename the KVM_REQ_SLEEP handler
The naming of the kvm_req_sleep function is confusing: the function
itself sleeps the vCPU, it does not request such an event. Rename the
function to make its purpose more clear.
No functional change intended.
Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220504032446.4133305-5-oupton@google.com
-rw-r--r-- | arch/arm64/kvm/arm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index 29e107457c4d..77b8b870c0fc 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -594,7 +594,7 @@ void kvm_arm_resume_guest(struct kvm *kvm) } } -static void vcpu_req_sleep(struct kvm_vcpu *vcpu) +static void kvm_vcpu_sleep(struct kvm_vcpu *vcpu) { struct rcuwait *wait = kvm_arch_vcpu_get_wait(vcpu); @@ -652,7 +652,7 @@ static void check_vcpu_requests(struct kvm_vcpu *vcpu) { if (kvm_request_pending(vcpu)) { if (kvm_check_request(KVM_REQ_SLEEP, vcpu)) - vcpu_req_sleep(vcpu); + kvm_vcpu_sleep(vcpu); if (kvm_check_request(KVM_REQ_VCPU_RESET, vcpu)) kvm_reset_vcpu(vcpu); |