All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] vhost-user-blk: dynamically resize config space based on features
@ 2022-08-26 14:32 Daniil Tatianin
  2022-08-26 14:32 ` [PATCH v2 1/8] virtio: introduce VirtIOConfigSizeParams & virtio_get_config_size Daniil Tatianin
                   ` (8 more replies)
  0 siblings, 9 replies; 22+ messages in thread
From: Daniil Tatianin @ 2022-08-26 14:32 UTC (permalink / raw)
  To: qemu-devel
  Cc: yc-core, mst, stefanha, raphael.norwitz, kwolf, qemu-block,
	jasowang, d-tatianin

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.

Daniil Tatianin (8):
  virtio: introduce VirtIOConfigSizeParams & virtio_get_config_size
  virtio-blk: utilize VirtIOConfigSizeParams & virtio_get_config_size
  virtio-net: utilize VirtIOConfigSizeParams & virtio_get_config_size
  virtio: remove the virtio_feature_get_config_size helper
  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                   |  8 ++++--
 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, 104 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



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-09-04 22:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 14:32 [PATCH v2 0/8] vhost-user-blk: dynamically resize config space based on features Daniil Tatianin
2022-08-26 14:32 ` [PATCH v2 1/8] virtio: introduce VirtIOConfigSizeParams & virtio_get_config_size Daniil Tatianin
2022-09-02 17:52   ` Raphael Norwitz
2022-09-02 22:12     ` Daniil Tatianin
2022-09-04 22:40       ` Raphael Norwitz
2022-08-26 14:32 ` [PATCH v2 2/8] virtio-blk: utilize " Daniil Tatianin
2022-09-02 17:52   ` Raphael Norwitz
2022-08-26 14:32 ` [PATCH v2 3/8] virtio-net: " Daniil Tatianin
2022-09-02 17:54   ` Raphael Norwitz
2022-09-02 22:24     ` Daniil Tatianin
2022-08-26 14:32 ` [PATCH v2 4/8] virtio: remove the virtio_feature_get_config_size helper Daniil Tatianin
2022-09-02 17:55   ` Raphael Norwitz
2022-08-26 14:32 ` [PATCH v2 5/8] virtio-blk: move config size params to virtio-blk-common Daniil Tatianin
2022-09-02 17:57   ` Raphael Norwitz
2022-09-02 22:15     ` Daniil Tatianin
2022-08-26 14:32 ` [PATCH v2 6/8] vhost-user-blk: make it possible to disable write-zeroes/discard Daniil Tatianin
2022-09-02 17:57   ` Raphael Norwitz
2022-08-26 14:32 ` [PATCH v2 7/8] vhost-user-blk: make 'config_wce' part of 'host_features' Daniil Tatianin
2022-09-02 17:58   ` Raphael Norwitz
2022-08-26 14:32 ` [PATCH v2 8/8] vhost-user-blk: dynamically resize config space based on features Daniil Tatianin
2022-09-02 17:59   ` Raphael Norwitz
     [not found] ` <292621662027678@mail.yandex-team.ru>
2022-09-02  3:40   ` [PATCH v2 0/8] " Raphael Norwitz

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.