Skip to contentSkip to conversation

powerpc/kvm: Remove bogus update of thread IDs in HV KVM

PATCH In review Benjamin Herrenschmidt 2 participants 2 messages Aug 17, 2012

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

PATCH 2/7 powerpc/kvm: Remove bogus update of thread IDs in HV KVM

When making a vcpu non-runnable we incorrectly changed the thread IDs of all other threads on the core, just remove that code.

---
This is a bug fix and thus should probably be merged ASAP

 arch/powerpc/kvm/book3s_hv.c |    6 ------
 1 file changed, 6 deletions(-)
arch/powerpc/kvm/book3s_hv.c +0 -6
index 3be5bb0..257e05b 100644
@@ -749,17 +749,11 @@ extern void xics_wake_cpu(int cpu);
 static void kvmppc_remove_runnable(struct kvmppc_vcore *vc,
 				   struct kvm_vcpu *vcpu)
 {
-	struct kvm_vcpu *v;
-
 	if (vcpu->arch.state != KVMPPC_VCPU_RUNNABLE)
 		return;
 	vcpu->arch.state = KVMPPC_VCPU_BUSY_IN_HOST;
 	--vc->n_runnable;
 	++vc->n_busy;
-	/* decrement the physical thread id of each following vcpu */
-	v = vcpu;
-	list_for_each_entry_continue(v, &vc->runnable_threads, arch.run_list)
-		--v->arch.ptid;
 	list_del(&vcpu->arch.run_list);
 }