KVM: PPC: Book3S HV: Remove bogus update of physical thread IDs
authorPaul Mackerras <paulus@samba.org>
Thu, 20 Sep 2012 19:36:32 +0000 (19:36 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 5 Oct 2012 21:38:52 +0000 (23:38 +0200)
When making a vcpu non-runnable we incorrectly changed the
thread IDs of all other threads on the core, just remove that
code.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c

index 38c7f1bc3495c7b7d19f92e8d5b04434ea07131b..c9ae3148c981d68ece53300f6e8f249ac314d5f0 100644 (file)
@@ -706,17 +706,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);
 }