Skip to contentSkip to conversation

KVM: PPC: fix partial application of "exit timing in ticks"

PATCH Applied Stuart Yoder 2 participants 2 messages May 17, 2011 – May 19, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: PPC: fix partial application of "exit timing in ticks"

When http://www.spinics.net/lists/kvm-ppc/msg02664.html
was applied to produce commit b51e7aa7ed6d8d134d02df78300ab0f91cfff4d2, the removal of the conversion in add_exit_timing was left out.

---
 arch/powerpc/kvm/timing.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
arch/powerpc/kvm/timing.c +0 -9
index 319177d..07b6110 100644
@@ -56,15 +56,6 @@ static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type)
 {
 	u64 old;
 
-	do_div(duration, tb_ticks_per_usec);
-	if (unlikely(duration > 0xFFFFFFFF)) {
-		printk(KERN_ERR"%s - duration too big -> overflow"
-			" duration %lld type %d exit #%d\n",
-			__func__, duration, type,
-			vcpu->arch.timing_count_type[type]);
-		return;
-	}
-
 	mutex_lock(&vcpu->arch.exit_timing_lock);
 
 	vcpu->arch.timing_count_type[type]++;
Signature · 1 line
1.7.4.1
#1 lore raw

Re: [PATCH] KVM: PPC: fix partial application of "exit timing in

Quoted 3 lines · Stuart Yoder

When http://www.spinics.net/lists/kvm-ppc/msg02664.html
was applied to produce commit b51e7aa7ed6d8d134d02df78300ab0f91cfff4d2, the removal of the conversion in add_exit_timing was left out.

Thanks, applied to kvm-ppc-next.

Alex