From: Anthony Liguori <aliguori@us.ibm.com>
To: Avi Kivity <avi@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH -V2] iohandler: update qemu_fd_set_handler to work with null call back arg
Date: Thu, 08 Sep 2011 07:57:12 -0500 [thread overview]
Message-ID: <4E68BBA8.9090604@us.ibm.com> (raw)
In-Reply-To: <4E6893F1.8070004@redhat.com>
On 09/08/2011 05:07 AM, Avi Kivity wrote:
> On 09/07/2011 09:44 PM, Anthony Liguori wrote:
>>
>> I think this is a bit more complicated than is really needed. Here's
>> what I came up with which also fixes another bug where the io channel
>> could be freed twice. I stumbled across this via a very strange
>> failure scenario. Avi, it might be worth trying this patch to see if
>> it fixes your problem too.
>
> Right now, I've got more than just one problem.
>
>>
>> One thing that I found challenging debugging this, coroutines make
>> valgrind very unhappy. Is it possible that we could have a command
>> line switch to fall back to the thread based coroutines so to make
>> things more valgrind friendly?
>
> How is valgrind even aware of coroutines? Unless is doesn't implement
> makecontext correctly, it shouldn't even be aware of them.
It detects stack switching and has trouble differentiating between a
legitimate stack switch and something more nefarious. I believe the
heuristic it currently uses is the distance that RSP moves. If it moves
more than a certain threshold, it assumes that's a stack switch.
Regards,
Anthony Liguori
>
>
prev parent reply other threads:[~2011-09-08 12:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 12:30 [Qemu-devel] [PATCH -V2] iohandler: update qemu_fd_set_handler to work with null call back arg Aneesh Kumar K.V
2011-09-07 18:44 ` Anthony Liguori
2011-09-07 19:26 ` Aneesh Kumar K.V
2011-09-08 10:07 ` Avi Kivity
2011-09-08 10:16 ` Kevin Wolf
2011-09-08 12:57 ` Anthony Liguori [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=4E68BBA8.9090604@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=avi@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
/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).