From: Raphael Norwitz <raphael.norwitz@nutanix.com>
To: Daniil Tatianin <d-tatianin@yandex-team.ru>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"yc-core@yandex-team.ru" <yc-core@yandex-team.ru>,
"mst@redhat.com" <mst@redhat.com>,
"stefanha@redhat.com" <stefanha@redhat.com>,
Raphael Norwitz <raphael.norwitz@nutanix.com>,
"kwolf@redhat.com" <kwolf@redhat.com>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>,
"jasowang@redhat.com" <jasowang@redhat.com>
Subject: Re: [PATCH v3 0/5] vhost-user-blk: dynamically resize config space based on features
Date: Wed, 7 Sep 2022 04:02:25 +0000 [thread overview]
Message-ID: <20220907040149.GA6661@raphael-debian-dev> (raw)
In-Reply-To: <20220906073111.353245-1-d-tatianin@yandex-team.ru>
Thanks for the changes. For the whole series:
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
On Tue, Sep 06, 2022 at 10:31:06AM +0300, Daniil Tatianin wrote:
> This patch set attempts to align vhost-user-blk with virtio-blk in
> terms of backward compatibility and flexibility. It also improves
> the virtio core by introducing new common code that can be used by
> a virtio device to calculate its config space size.
>
> In particular it adds the following things:
> - Common virtio code for deducing the required device config size based
> on provided host features.
> - Ability to disable modern virtio-blk features like
> discard/write-zeroes for vhost-user-blk.
> - Dynamic configuration space resizing based on enabled features,
> by reusing the common code introduced in the earlier commits.
> - Cleans up the VHostUserBlk structure by reusing parent fields.
>
> Changes since v1 (mostly addresses Stefan's feedback):
> - Introduce VirtIOConfigSizeParams & virtio_get_config_size
> - Remove virtio_blk_set_config_size altogether, make virtio-blk-common.c
> only hold the virtio-blk config size parameters.
> - Reuse parent fields in vhost-user-blk instead of introducing new ones.
>
> Changes since v2:
> - Squash the first four commits into one
> - Set .min_size for virtio-net as well
> - Move maintainer/meson user-blk bits to the last commit
>
> Daniil Tatianin (5):
> virtio: introduce VirtIOConfigSizeParams & virtio_get_config_size
> virtio-blk: move config size params to virtio-blk-common
> vhost-user-blk: make it possible to disable write-zeroes/discard
> vhost-user-blk: make 'config_wce' part of 'host_features'
> vhost-user-blk: dynamically resize config space based on features
>
> MAINTAINERS | 4 +++
> hw/block/meson.build | 4 +--
> hw/block/vhost-user-blk.c | 29 +++++++++++---------
> hw/block/virtio-blk-common.c | 39 +++++++++++++++++++++++++++
> hw/block/virtio-blk.c | 28 +++----------------
> hw/net/virtio-net.c | 9 +++++--
> hw/virtio/virtio.c | 10 ++++---
> include/hw/virtio/vhost-user-blk.h | 1 -
> include/hw/virtio/virtio-blk-common.h | 20 ++++++++++++++
> include/hw/virtio/virtio.h | 10 +++++--
> 10 files changed, 105 insertions(+), 49 deletions(-)
> create mode 100644 hw/block/virtio-blk-common.c
> create mode 100644 include/hw/virtio/virtio-blk-common.h
>
> --
> 2.25.1
>
next prev parent reply other threads:[~2022-09-07 4:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 7:31 [PATCH v3 0/5] vhost-user-blk: dynamically resize config space based on features Daniil Tatianin
2022-09-06 7:31 ` [PATCH v3 1/5] virtio: introduce VirtIOConfigSizeParams & virtio_get_config_size Daniil Tatianin
2022-09-06 7:31 ` [PATCH v3 2/5] virtio-blk: move config size params to virtio-blk-common Daniil Tatianin
2022-09-06 7:31 ` [PATCH v3 3/5] vhost-user-blk: make it possible to disable write-zeroes/discard Daniil Tatianin
2022-09-06 7:31 ` [PATCH v3 4/5] vhost-user-blk: make 'config_wce' part of 'host_features' Daniil Tatianin
2022-09-06 7:31 ` [PATCH v3 5/5] vhost-user-blk: dynamically resize config space based on features Daniil Tatianin
2022-09-07 4:02 ` Raphael Norwitz [this message]
2022-09-12 14:54 ` [PATCH v3 0/5] " Daniil Tatianin
2022-09-12 17:03 ` Raphael Norwitz
2022-10-11 7:20 ` Daniil Tatianin
2022-10-11 7:21 ` Daniil Tatianin
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=20220907040149.GA6661@raphael-debian-dev \
--to=raphael.norwitz@nutanix.com \
--cc=d-tatianin@yandex-team.ru \
--cc=jasowang@redhat.com \
--cc=kwolf@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=yc-core@yandex-team.ru \
/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).