From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbbJUJYT (ORCPT ); Wed, 21 Oct 2015 05:24:19 -0400 Received: from ozlabs.org ([103.22.144.67]:33316 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753930AbbJUJYR (ORCPT ); Wed, 21 Oct 2015 05:24:17 -0400 Date: Wed, 21 Oct 2015 20:24:11 +1100 From: Paul Mackerras To: Peter Zijlstra Cc: Daniel Wagner , linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Marcelo Tosatti , Paolo Bonzini , "Paul E. McKenney" , Paul Gortmaker , Thomas Gleixner Subject: Re: [PATCH v3 2/4] KVM: use simple waitqueue for vcpu->wq Message-ID: <20151021092411.GD15591@fergus.ozlabs.ibm.com> References: <1445326090-1698-1-git-send-email-daniel.wagner@bmw-carit.de> <1445326090-1698-3-git-send-email-daniel.wagner@bmw-carit.de> <20151020140031.GG17308@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151020140031.GG17308@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2015 at 04:00:31PM +0200, Peter Zijlstra wrote: > > Should we not take this opportunity to get rid of these open-coded wait > loops? > > > Does this work? No, on Book3S HV (POWER8) the VM hangs immediately after the kernel brings up all the secondary vCPUs, and is then unkillable. I'm not sure what's wrong, although I wonder why you have TASK_IDLE rather than TASK_INTERRUPTIBLE in the ___wait_event call. Paul.