Skip to content

Commit 3c5ff0c

Browse files
author
Marc Zyngier
committed
KVM: arm64: timers: Rename kvm_timer_sync_hwstate to kvm_timer_sync_user
kvm_timer_sync_hwstate() has nothing to do with the timer HW state, but more to do with the state of a userspace interrupt controller. Change the suffix from _hwstate to_user, in keeping with the rest of the code. Signed-off-by: Marc Zyngier <[email protected]>
1 parent 710f198 commit 3c5ff0c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/arm64/kvm/arch_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ static void unmask_vtimer_irq_user(struct kvm_vcpu *vcpu)
615615
}
616616
}
617617

618-
void kvm_timer_sync_hwstate(struct kvm_vcpu *vcpu)
618+
void kvm_timer_sync_user(struct kvm_vcpu *vcpu)
619619
{
620620
struct arch_timer_cpu *timer = vcpu_timer(vcpu);
621621

arch/arm64/kvm/arm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
723723
isb(); /* Ensure work in x_flush_hwstate is committed */
724724
kvm_pmu_sync_hwstate(vcpu);
725725
if (static_branch_unlikely(&userspace_irqchip_in_use))
726-
kvm_timer_sync_hwstate(vcpu);
726+
kvm_timer_sync_user(vcpu);
727727
kvm_vgic_sync_hwstate(vcpu);
728728
local_irq_enable();
729729
preempt_enable();
@@ -768,7 +768,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
768768
* timer virtual interrupt state.
769769
*/
770770
if (static_branch_unlikely(&userspace_irqchip_in_use))
771-
kvm_timer_sync_hwstate(vcpu);
771+
kvm_timer_sync_user(vcpu);
772772

773773
kvm_arch_vcpu_ctxsync_fp(vcpu);
774774

include/kvm/arm_arch_timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int kvm_timer_hyp_init(bool);
7171
int kvm_timer_enable(struct kvm_vcpu *vcpu);
7272
int kvm_timer_vcpu_reset(struct kvm_vcpu *vcpu);
7373
void kvm_timer_vcpu_init(struct kvm_vcpu *vcpu);
74-
void kvm_timer_sync_hwstate(struct kvm_vcpu *vcpu);
74+
void kvm_timer_sync_user(struct kvm_vcpu *vcpu);
7575
bool kvm_timer_should_notify_user(struct kvm_vcpu *vcpu);
7676
void kvm_timer_update_run(struct kvm_vcpu *vcpu);
7777
void kvm_timer_vcpu_terminate(struct kvm_vcpu *vcpu);

0 commit comments

Comments
 (0)