From: Gerd Hoffmann <kraxel@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 05/10] xen: add block device backend driver.
Date: Fri, 03 Apr 2009 22:11:08 +0200 [thread overview]
Message-ID: <49D66D5C.5090800@redhat.com> (raw)
In-Reply-To: <20090402170209.GA10089@lst.de>
Christoph Hellwig wrote:
> On Wed, Apr 01, 2009 at 11:39:37PM +0200, Gerd Hoffmann wrote:
>> +static void inline blkif_get_x86_32_req(blkif_request_t *dst, blkif_x86_32_request_t *src)
>> +{
>
>> +static void inline blkif_get_x86_64_req(blkif_request_t *dst, blkif_x86_64_request_t *src)
>> +{
>
> I think you'd be better of moving them to the .c file as normal static
> function and leave the inlining decisions to the compiler.
The .h file is a straight copy, thats why I left it as is. I can
cut&paste it into the source file as well, I don't care that much.
>> +
>> +/*
>> + * FIXME: the code is designed to handle multiple outstanding
>> + * requests, which isn't used right now. Plan is to
>> + * switch over to the aio block functions once they got
>> + * vector support.
>> + */
>
> We already have bdrv_aio_readv/writev which currently linearize the
> buffer underneath.
Right, will adapt and kill the FIXME.
> Hopefully Anthony will have commited the patch to
> implement the real one while I'm writing this, too :)
Linus committed the preadv syscall patches too (abi is not final yet
though).
>> + if (ioreq->presync)
>> + bdrv_flush(blkdev->bs); /* FIXME: aio_flush() ??? */
> hdrv_flush doesn't actually empty the aio queues but only issues
> a fsync. So we could still re-order requeuests around the barrier
> with this implementation.
Thats why there is a FIXME ...
> I will soon submit a real block-layer level
> barrier implementation that just allows to flag a bdrv_aio_read/write
> request as barrier and deal with this under the hood.
Great.
cheers,
Gerd
next prev parent reply other threads:[~2009-04-03 20:11 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-01 21:39 [Qemu-devel] [PATCH 00/10] xen: pv domain support Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 01/10] xen: groundwork for xen support Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-02 16:37 ` [Qemu-devel] " Blue Swirl
2009-04-02 16:37 ` Blue Swirl
2009-04-03 19:58 ` [Qemu-devel] " Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 02/10] xen: backend driver core Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-02 16:49 ` [Qemu-devel] " Blue Swirl
2009-04-02 16:49 ` Blue Swirl
2009-04-03 19:59 ` [Qemu-devel] " Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 03/10] xen: add console backend driver Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 04/10] xen: add framebuffer " Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-02 16:57 ` [Qemu-devel] " Blue Swirl
2009-04-02 16:57 ` Blue Swirl
2009-04-01 21:39 ` [Qemu-devel] [PATCH 05/10] xen: add block device " Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-02 17:02 ` [Qemu-devel] " Christoph Hellwig
2009-04-03 20:11 ` Gerd Hoffmann [this message]
2009-04-05 13:49 ` Anthony Liguori
2009-04-06 12:38 ` Christoph Hellwig
2009-04-07 10:22 ` Gerd Hoffmann
2009-04-07 15:51 ` Christoph Hellwig
2009-04-01 21:39 ` [Qemu-devel] [PATCH 06/10] xen: add net " Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 07/10] xen: blk & nic configuration via cmd line Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 08/10] xen: pv domain builder Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-02 17:06 ` [Qemu-devel] " Blue Swirl
2009-04-02 17:06 ` Blue Swirl
2009-04-01 21:39 ` [Qemu-devel] [PATCH 09/10] simplify vga selection Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-01 21:39 ` [Qemu-devel] [PATCH 10/10] xen: add -vga xenfb option, configure xenfb Gerd Hoffmann
2009-04-01 21:39 ` Gerd Hoffmann
2009-04-01 23:41 ` [Qemu-devel] [PATCH 00/10] xen: pv domain support Anthony Liguori
2009-04-02 15:32 ` Ian Jackson
2009-04-02 21:14 ` Laurent Vivier
2009-04-02 21:14 ` Laurent Vivier
2009-04-03 20:24 ` [Qemu-devel] " Gerd Hoffmann
2009-04-03 23:04 ` Alexander Graf
2009-04-03 23:04 ` Alexander Graf
2009-04-05 8:48 ` [Qemu-devel] " Avi Kivity
2009-04-05 11:17 ` Alexander Graf
2009-04-05 11:17 ` Alexander Graf
2009-04-05 11:37 ` [Qemu-devel] " Avi Kivity
2009-04-05 12:10 ` Alexander Graf
2009-04-05 12:10 ` Alexander Graf
2009-04-05 12:33 ` [Qemu-devel] " Avi Kivity
2009-04-06 7:39 ` Gerd Hoffmann
2009-04-06 13:56 ` [Xen-devel] " Stefano Stabellini
2009-04-06 13:56 ` Stefano Stabellini
2009-04-06 7:10 ` Gerd Hoffmann
2009-04-06 6:53 ` Gerd Hoffmann
2009-04-06 20:44 ` [Xen-devel] " Jeremy Fitzhardinge
2009-04-06 20:44 ` Jeremy Fitzhardinge
-- strict thread matches above, loose matches on Subject: below --
2009-04-07 14:44 Gerd Hoffmann
2009-04-07 14:44 ` [Qemu-devel] [PATCH 05/10] xen: add block device backend driver Gerd Hoffmann
2009-04-21 12:19 [Qemu-devel] [PATCH 00/10] xen: pv domain support Gerd Hoffmann
2009-04-21 12:20 ` [Qemu-devel] [PATCH 05/10] xen: add block device backend driver Gerd Hoffmann
2009-04-21 15:47 ` Blue Swirl
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=49D66D5C.5090800@redhat.com \
--to=kraxel@redhat.com \
--cc=hch@lst.de \
--cc=qemu-devel@nongnu.org \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.