qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: KVM list <kvm@vger.kernel.org>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [s390] possible deadlock in handle_sigp?
Date: Mon, 12 Sep 2016 18:44:17 +0200	[thread overview]
Message-ID: <c9438426-1f1e-c6eb-9b90-79a6b62e537a@redhat.com> (raw)

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

             reply	other threads:[~2016-09-12 16:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12 16:44 Paolo Bonzini [this message]
2016-09-12 17:37 ` [Qemu-devel] [s390] possible deadlock in handle_sigp? Christian Borntraeger
2016-09-12 18:03   ` Paolo Bonzini
2016-09-13 13:06     ` Christian Borntraeger
2016-09-15 19:21       ` David Hildenbrand
2016-09-15 20:50         ` Paolo Bonzini
2016-09-19  8:15         ` Christian Borntraeger
2016-09-19 11:25           ` David Hildenbrand
2016-09-19 11:45             ` Christian Borntraeger
2016-09-20 11:57 ` [Qemu-devel] [PATCH] s390x/kvm: Fix potential deadlock in sigp handling Christian Borntraeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9438426-1f1e-c6eb-9b90-79a6b62e537a@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).