From: Paul Mackerras Date: Tue, 2 Sep 2014 06:14:42 +0000 (+1000) Subject: KVM: PPC: Book3S HV: Increase timeout for grabbing secondary threads X-Git-Tag: v3.18-rc1~138^2~5^2~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b754c739ee8cd0101dc3f5a24e8c2ff76ee7eff9;p=~emulex%2Finfiniband.git KVM: PPC: Book3S HV: Increase timeout for grabbing secondary threads Occasional failures have been seen with split-core mode and migration where the message "KVM: couldn't grab cpu" appears. This increases the length of time that we wait from 1ms to 10ms, which seems to work around the issue. Signed-off-by: Paul Mackerras Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 27cced9c724..4526befd60c 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -1489,7 +1489,7 @@ static void kvmppc_remove_runnable(struct kvmppc_vcore *vc, static int kvmppc_grab_hwthread(int cpu) { struct paca_struct *tpaca; - long timeout = 1000; + long timeout = 10000; tpaca = &paca[cpu];