From: Jamie Lokier <jamie@shareable.org>
To: Kevin Wolf <kwolf@suse.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [4367] Align file accesses with cache=off (Kevin Wolf, Laurent Vivier)
Date: Wed, 7 May 2008 17:26:42 +0100 [thread overview]
Message-ID: <20080507162642.GA7324@shareable.org> (raw)
In-Reply-To: <4821A8F0.9070506@suse.de>
Kevin Wolf wrote:
> No, nobody mentioned the recursion problem.
Hmm. I concede you're right in the sense that it was mentioned, but
on a different thread about QEMU AIO recently :-)
Message-ID: <20080403113128.GA17900@shareable.org>
Avi Kivity wrote:
> Long term we want to replace the recursion by queuing.
Ah yes. Reminds me of a bug in a program of mine with asynchronous
sockets.
<explanation of bug>
I learned a few lessons about async callbacks:
<general advice>
> And you were talking about
> problem with two different file descriptors for one file, not about the
> fcntl solution. Ok, might also be that the hints were just not explicit
> enough for me. ;-)
Following the paragraph about two file descriptors, there was:
>> I'm not sure if that works, though. On some OSes, if a file has any
>> non-O_DIRECT open descriptor, all I/O is buffered ignoring the
>> O_DIRECT flag. If both are allowed simultaneously, I'm not sure what
>> happens with cache-coherency between direct I/Os and buffered I/Os.
Not sure if that is quite the same thing :-)
I did miss that switching O_DIRECT on/off while AIOs are in flight on
that descriptor might be dodgy (implementation dependent), and that it
might not do the right things w.r.t. cohrency.
> But even if so, this is more of a general feeling about how patches are
> handled and not only related to this patch.
I agree and have a similar feeling, though it's not a bad thing
provided the issues are actually noticed, which they do seem to be. I
have the impression there are many people working on different
specific features and subsystems, but not so much on overall
architecture in a coordinated and "visionary" way.
Most of my issues with QEMU are the epic list of difficulties with
Microsoft guests (espcially when people send me images for a different
VM), the peculiar divergence between KVM and QEMU features, and the
awkwardness of the monitor/command line interface. Since I'm not an
active code contributor, and those are to a great extent feature
requests or only debuggable by users, I keep those thoughts largely to
myself :-)
-- Jamie
next prev parent reply other threads:[~2008-05-07 16:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 17:27 [Qemu-devel] [4367] Align file accesses with cache=off (Kevin Wolf, Laurent Vivier) Blue Swirl
2008-05-06 22:17 ` Fabrice Bellard
2008-05-06 22:33 ` Anthony Liguori
2008-05-07 7:48 ` Jamie Lokier
2008-05-07 8:16 ` Kevin Wolf
2008-05-07 12:37 ` Jamie Lokier
2008-05-07 13:04 ` Kevin Wolf
2008-05-07 16:19 ` Blue Swirl
2008-05-07 16:39 ` Kevin Wolf
2008-05-07 16:26 ` Jamie Lokier [this message]
2008-05-07 17:23 ` Kevin Wolf
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=20080507162642.GA7324@shareable.org \
--to=jamie@shareable.org \
--cc=kwolf@suse.de \
--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).