From: Max Gurtovoy <mgurtovoy@nvidia.com>
To: Daniel Verkamp <dverkamp@chromium.org>
Cc: mst@redhat.com, virtualization@lists.linux-foundation.org,
stefanha@redhat.com, virtio-dev@lists.linux.dev, oren@nvidia.com,
parav@nvidia.com
Subject: Re: [PATCH 1/1] virtio-blk: Add description for blk_size field
Date: Sun, 6 Oct 2024 14:35:49 +0300 [thread overview]
Message-ID: <80c82271-b29c-4f56-b90c-e72a4ea7f3cf@nvidia.com> (raw)
In-Reply-To: <CABVzXAmxuVngKjNvc9AsnkuNcOK+7JeEuBE9CDaMxAA=b3f=fw@mail.gmail.com>
On 03/10/2024 2:56, Daniel Verkamp wrote:
> On Mon, Sep 30, 2024 at 6:45 PM Daniel Verkamp <dverkamp@chromium.org> wrote:
>> On Wed, Sep 25, 2024 at 4:42 PM Max Gurtovoy <mgurtovoy@nvidia.com> wrote:
> [...]
>>> I'm curious if you've encountered any actual implementations where
>>> drivers send non-block-size-aligned requests to block devices. I never
>>> saw such implementation.
>> I don't know of any real-world implementations like this, but the
>> point of the spec is to allow interoperability without having to know
>> about every implementation.
> I did find at least one existing real-world driver implementation that
> ignores blk_size and VIRTIO_BLK_F_BLK_SIZE - the u-boot virtio-blk
> driver: https://github.com/u-boot/u-boot/blob/master/drivers/virtio/virtio_blk.c
>
> So this is not just spec language lawyering; this driver depends on
> the ability to read/write at arbitrary 512-byte sector addresses and
> data sizes, and it seems like it should be allowed to do that based on
> my reading of the spec.
>
> (Perhaps u-boot's driver does not work with the QEMU's virtio-blk
> device with certain storage configurations, per Stefan's note, but
> that is again just one device implementation.)
Vague specifications and inconsistent interpretations should be avoided.
I'm trying to make the situation better.
I'll send a V2 according to the comments.
BTW, Are you familiar with some virtio-blk device that implements the
buffer-cache logic you've described ? or is it only a theoretical
discussion ?
>
> -- Daniel
next prev parent reply other threads:[~2024-10-06 11:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-25 14:52 [PATCH 1/1] virtio-blk: Add description for blk_size field Max Gurtovoy
2024-09-25 20:57 ` Daniel Verkamp
[not found] ` <ca954af2-4c61-41f5-8cf0-69a1233704ba@nvidia.com>
2024-09-26 21:44 ` Daniel Verkamp
2024-09-28 0:22 ` Max Gurtovoy
2024-10-01 1:45 ` Daniel Verkamp
2024-10-02 13:42 ` Stefan Hajnoczi
2024-10-02 23:56 ` Daniel Verkamp
2024-10-06 11:35 ` Max Gurtovoy [this message]
2024-10-08 1:58 ` Daniel Verkamp
2024-10-08 20:09 ` Stefan Hajnoczi
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=80c82271-b29c-4f56-b90c-e72a4ea7f3cf@nvidia.com \
--to=mgurtovoy@nvidia.com \
--cc=dverkamp@chromium.org \
--cc=mst@redhat.com \
--cc=oren@nvidia.com \
--cc=parav@nvidia.com \
--cc=stefanha@redhat.com \
--cc=virtio-dev@lists.linux.dev \
--cc=virtualization@lists.linux-foundation.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).