qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, "Emilio G. Cota" <cota@braap.org>
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
	"qemu devel list" <qemu-devel@nongnu.org>,
	"Cole Robinson" <crobinso@redhat.com>
Subject: Re: [Qemu-devel] qemu <-> libvirt communication regressed in QEMU commit 5243722376
Date: Wed, 16 Sep 2015 15:16:44 +0200	[thread overview]
Message-ID: <55F96BBC.80709@redhat.com> (raw)
In-Reply-To: <55F96003.7030707@redhat.com>

On 09/16/15 14:26, Paolo Bonzini wrote:
> 
> 
> On 16/09/2015 14:13, Laszlo Ersek wrote:
>>
>> Your patch causes "rcu_registry_lock" to be reinitialized in the child,
>> rather than released, plus "rcu_sync_lock" remains untouched (ie. locked
>> by the one thread that exists in the child). Why is that correct?
>>
>> (Side note: we're talking process-private, not process-shared mutexen.)
>>
>> I can be easily wrong, but I don't understand the commit message, and
>> why the patch is correct.
>>
>> ... Hm, I can see the discussion here:
>>
>> http://thread.gmane.org/gmane.comp.emulators.qemu/356765/focus=360421
>>
>> Okay... let me see 24fa90499f... "The problem is that releasing
>> error-checking locks in the child fails under glibc with EPERM". <--
>> That is a striking surprise to me, but still, the removal of
>> PTHREAD_MUTEX_ERRORCHECK only justifies why your patch would *not* be
>> necessary.
>>
>> The last paragraph of your email that I linked above talks about a
>> "possibility of corruption". Maybe I've managed to trigger that. If so,
>> I hope it won't be hard to fix up.
>>
>> ... Hm, apparently Alex had mentioned the same concern as I did now,
>> about ignoring "rcu_sync_lock" in the child, in message
>> <http://thread.gmane.org/gmane.comp.emulators.qemu/356765/focus=360602>.
>> Was that concern cleared up eventually?
> 
> No, the patch was included by mistake.  Sorry.

NP, thanks for the quick action.
Laszlo

      reply	other threads:[~2015-09-16 13:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-16 12:13 [Qemu-devel] qemu <-> libvirt communication regressed in QEMU commit 5243722376 Laszlo Ersek
2015-09-16 12:26 ` Paolo Bonzini
2015-09-16 13:16   ` Laszlo Ersek [this message]

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=55F96BBC.80709@redhat.com \
    --to=lersek@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=cota@braap.org \
    --cc=crobinso@redhat.com \
    --cc=pbonzini@redhat.com \
    --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).