From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUMR-0001E8-N7 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 12:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjUML-0002IO-O1 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 12:45:34 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUML-0002HD-ID for qemu-devel@nongnu.org; Mon, 12 Sep 2016 12:45:29 -0400 Received: by mail-wm0-f67.google.com with SMTP id g141so3451381wmd.1 for ; Mon, 12 Sep 2016 09:45:29 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Message-ID: Date: Mon, 12 Sep 2016 18:44:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [s390] possible deadlock in handle_sigp? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: KVM list , Cornelia Huck , Christian Borntraeger , qemu-devel I think that two CPUs doing reciprocal SIGPs could in principle end up waiting on each other to complete their run_on_cpu. If the SIGP has to be synchronous the fix is not trivial (you'd have to put the CPU in a state similar to cpu->halted = 1), otherwise it's enough to replace run_on_cpu with async_run_on_cpu. Thanks, Paolo