From: Jason Wang <jasowang@redhat.com> To: Suwan Kim <suwan.kim027@gmail.com> Cc: mst <mst@redhat.com>, pbonzini <pbonzini@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, virtualization <virtualization@lists.linux-foundation.org>, linux-block@vger.kernel.org, Max Gurtovoy <mgurtovoy@nvidia.com> Subject: Re: [PATCH] virtio-blk: support polling I/O Date: Thu, 17 Mar 2022 10:20:05 +0800 [thread overview] Message-ID: <CACGkMEu8T8_9gJMGybMZVCT9zCrw+OaTtbhtvnUNUORNmYKw-A@mail.gmail.com> (raw) In-Reply-To: <YjIDIjUwuwkfRS2d@localhost.localdomain> On Wed, Mar 16, 2022 at 11:33 PM Suwan Kim <suwan.kim027@gmail.com> wrote: > > On Wed, Mar 16, 2022 at 10:02:13AM +0800, Jason Wang wrote: > > On Tue, Mar 15, 2022 at 10:43 PM Suwan Kim <suwan.kim027@gmail.com> wrote: > > > > > > On Tue, Mar 15, 2022 at 04:59:23PM +0800, Jason Wang wrote: > > > > On Mon, Mar 14, 2022 at 8:33 PM Suwan Kim <suwan.kim027@gmail.com> wrote: > > > > > > > > > On Mon, Mar 14, 2022 at 02:14:53PM +0800, Jason Wang wrote: > > > > > > > > > > > > 在 2022/3/11 下午11:28, Suwan Kim 写道: > > > > > > > diff --git a/include/uapi/linux/virtio_blk.h > > > > > b/include/uapi/linux/virtio_blk.h > > > > > > > index d888f013d9ff..3fcaf937afe1 100644 > > > > > > > --- a/include/uapi/linux/virtio_blk.h > > > > > > > +++ b/include/uapi/linux/virtio_blk.h > > > > > > > @@ -119,8 +119,9 @@ struct virtio_blk_config { > > > > > > > * deallocation of one or more of the sectors. > > > > > > > */ > > > > > > > __u8 write_zeroes_may_unmap; > > > > > > > + __u8 unused1; > > > > > > > - __u8 unused1[3]; > > > > > > > + __virtio16 num_poll_queues; > > > > > > > } __attribute__((packed)); > > > > > > > > > > > > > > > > > > This looks like a implementation specific (virtio-blk-pci) optimization, > > > > > how > > > > > > about other implementation like vhost-user-blk? > > > > > > > > > > I didn’t consider vhost-user-blk yet. But does vhost-user-blk also > > > > > use vritio_blk_config as kernel-qemu interface? > > > > > > > > > > > > > Yes, but see below. > > > > > > > > > > > > > > > > > > Does vhost-user-blk need additional modification to support polling > > > > > in kernel side? > > > > > > > > > > > > > > > > > No, but the issue is, things like polling looks not a good candidate for > > > > the attributes belonging to the device but the driver. So I have more > > > > questions: > > > > > > > > 1) what does it really mean for hardware virtio block devices? > > > > 2) Does driver polling help for the qemu implementation without polling? > > > > 3) Using blk_config means we can only get the benefit from the new device > > > > > > 1) what does it really mean for hardware virtio block devices? > > > 3) Using blk_config means we can only get the benefit from the new device > > > > > > This patch adds dedicated HW queue for polling purpose to virtio > > > block device. > > > > > > So I think it can be a new hw feature. And it can be a new device > > > that supports hw poll queue. > > > > One possible issue is that the "poll" looks more like a > > software/driver concept other than the device/hardware. > > > > > > > > BTW, I have other idea about it. > > > > > > How about adding “num-poll-queues" property as a driver parameter > > > like NVMe driver, not to QEMU virtio-blk-pci property? > > > > It should be fine, but we need to listen to others. > > To Michael, Stefan, Max > > How about using driver parameter instead of virio_blk_config? I agree. Thanks > > Regards, > Suwan Kim >
WARNING: multiple messages have this Message-ID (diff)
From: Jason Wang <jasowang@redhat.com> To: Suwan Kim <suwan.kim027@gmail.com> Cc: Max Gurtovoy <mgurtovoy@nvidia.com>, mst <mst@redhat.com>, virtualization <virtualization@lists.linux-foundation.org>, linux-block@vger.kernel.org, Stefan Hajnoczi <stefanha@redhat.com>, pbonzini <pbonzini@redhat.com> Subject: Re: [PATCH] virtio-blk: support polling I/O Date: Thu, 17 Mar 2022 10:20:05 +0800 [thread overview] Message-ID: <CACGkMEu8T8_9gJMGybMZVCT9zCrw+OaTtbhtvnUNUORNmYKw-A@mail.gmail.com> (raw) In-Reply-To: <YjIDIjUwuwkfRS2d@localhost.localdomain> On Wed, Mar 16, 2022 at 11:33 PM Suwan Kim <suwan.kim027@gmail.com> wrote: > > On Wed, Mar 16, 2022 at 10:02:13AM +0800, Jason Wang wrote: > > On Tue, Mar 15, 2022 at 10:43 PM Suwan Kim <suwan.kim027@gmail.com> wrote: > > > > > > On Tue, Mar 15, 2022 at 04:59:23PM +0800, Jason Wang wrote: > > > > On Mon, Mar 14, 2022 at 8:33 PM Suwan Kim <suwan.kim027@gmail.com> wrote: > > > > > > > > > On Mon, Mar 14, 2022 at 02:14:53PM +0800, Jason Wang wrote: > > > > > > > > > > > > 在 2022/3/11 下午11:28, Suwan Kim 写道: > > > > > > > diff --git a/include/uapi/linux/virtio_blk.h > > > > > b/include/uapi/linux/virtio_blk.h > > > > > > > index d888f013d9ff..3fcaf937afe1 100644 > > > > > > > --- a/include/uapi/linux/virtio_blk.h > > > > > > > +++ b/include/uapi/linux/virtio_blk.h > > > > > > > @@ -119,8 +119,9 @@ struct virtio_blk_config { > > > > > > > * deallocation of one or more of the sectors. > > > > > > > */ > > > > > > > __u8 write_zeroes_may_unmap; > > > > > > > + __u8 unused1; > > > > > > > - __u8 unused1[3]; > > > > > > > + __virtio16 num_poll_queues; > > > > > > > } __attribute__((packed)); > > > > > > > > > > > > > > > > > > This looks like a implementation specific (virtio-blk-pci) optimization, > > > > > how > > > > > > about other implementation like vhost-user-blk? > > > > > > > > > > I didn’t consider vhost-user-blk yet. But does vhost-user-blk also > > > > > use vritio_blk_config as kernel-qemu interface? > > > > > > > > > > > > > Yes, but see below. > > > > > > > > > > > > > > > > > > Does vhost-user-blk need additional modification to support polling > > > > > in kernel side? > > > > > > > > > > > > > > > > > No, but the issue is, things like polling looks not a good candidate for > > > > the attributes belonging to the device but the driver. So I have more > > > > questions: > > > > > > > > 1) what does it really mean for hardware virtio block devices? > > > > 2) Does driver polling help for the qemu implementation without polling? > > > > 3) Using blk_config means we can only get the benefit from the new device > > > > > > 1) what does it really mean for hardware virtio block devices? > > > 3) Using blk_config means we can only get the benefit from the new device > > > > > > This patch adds dedicated HW queue for polling purpose to virtio > > > block device. > > > > > > So I think it can be a new hw feature. And it can be a new device > > > that supports hw poll queue. > > > > One possible issue is that the "poll" looks more like a > > software/driver concept other than the device/hardware. > > > > > > > > BTW, I have other idea about it. > > > > > > How about adding “num-poll-queues" property as a driver parameter > > > like NVMe driver, not to QEMU virtio-blk-pci property? > > > > It should be fine, but we need to listen to others. > > To Michael, Stefan, Max > > How about using driver parameter instead of virio_blk_config? I agree. Thanks > > Regards, > Suwan Kim > _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
next prev parent reply other threads:[~2022-03-17 2:20 UTC|newest] Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-11 15:28 [PATCH] virtio-blk: support polling I/O Suwan Kim 2022-03-11 15:38 ` Michael S. Tsirkin 2022-03-11 15:38 ` Michael S. Tsirkin 2022-03-11 16:07 ` Suwan Kim 2022-03-11 16:18 ` Michael S. Tsirkin 2022-03-11 16:18 ` Michael S. Tsirkin 2022-03-11 16:38 ` Suwan Kim 2022-03-13 10:37 ` Max Gurtovoy 2022-03-14 9:43 ` Suwan Kim 2022-03-14 10:25 ` Max Gurtovoy 2022-03-14 11:15 ` Michael S. Tsirkin 2022-03-14 11:15 ` Michael S. Tsirkin 2022-03-14 13:22 ` Suwan Kim 2022-03-14 15:12 ` Michael S. Tsirkin 2022-03-14 15:12 ` Michael S. Tsirkin 2022-03-14 13:26 ` Max Gurtovoy 2022-03-14 15:15 ` Michael S. Tsirkin 2022-03-14 15:15 ` Michael S. Tsirkin 2022-03-14 16:33 ` Max Gurtovoy 2022-03-14 22:22 ` Michael S. Tsirkin 2022-03-14 22:22 ` Michael S. Tsirkin 2022-03-13 10:42 ` Max Gurtovoy 2022-03-14 9:55 ` Suwan Kim 2022-03-14 10:32 ` Max Gurtovoy 2022-03-14 6:14 ` Jason Wang 2022-03-14 6:14 ` Jason Wang 2022-03-14 12:33 ` Suwan Kim 2022-03-14 14:48 ` Stefan Hajnoczi 2022-03-14 14:48 ` Stefan Hajnoczi 2022-03-15 8:59 ` Jason Wang 2022-03-15 14:43 ` Suwan Kim 2022-03-15 14:53 ` Michael S. Tsirkin 2022-03-15 14:53 ` Michael S. Tsirkin 2022-03-16 2:02 ` Jason Wang 2022-03-16 2:02 ` Jason Wang 2022-03-16 11:25 ` Max Gurtovoy 2022-03-16 13:32 ` Suwan Kim 2022-03-16 15:32 ` Suwan Kim 2022-03-16 15:36 ` Max Gurtovoy 2022-03-16 16:00 ` Stefan Hajnoczi 2022-03-16 16:00 ` Stefan Hajnoczi 2022-03-17 2:20 ` Jason Wang [this message] 2022-03-17 2:20 ` Jason Wang 2022-03-17 15:03 ` Suwan Kim 2022-03-14 15:19 ` Stefan Hajnoczi 2022-03-14 15:19 ` Stefan Hajnoczi 2022-03-15 13:55 ` Suwan Kim 2022-03-16 12:20 ` Stefan Hajnoczi 2022-03-16 12:20 ` 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=CACGkMEu8T8_9gJMGybMZVCT9zCrw+OaTtbhtvnUNUORNmYKw-A@mail.gmail.com \ --to=jasowang@redhat.com \ --cc=linux-block@vger.kernel.org \ --cc=mgurtovoy@nvidia.com \ --cc=mst@redhat.com \ --cc=pbonzini@redhat.com \ --cc=stefanha@redhat.com \ --cc=suwan.kim027@gmail.com \ --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: linkBe 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.