virtio-blk: move config size params to virtio-blk-common
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Tue, 6 Sep 2022 07:31:08 +0000 (10:31 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Oct 2022 13:41:51 +0000 (09:41 -0400)
commitd9cf55a86d315efc9fa07daad72f74f769555183
treef63d11c3e61042b6fc64a4c2fe32779bee23a09f
parentd74c30c81159d703fb4e1caa0ec6772ff89dd02f
virtio-blk: move config size params to virtio-blk-common

This way we can reuse it for other virtio-blk devices, e.g
vhost-user-blk, which currently does not control its config space size
dynamically.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20220906073111.353245-3-d-tatianin@yandex-team.ru>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
MAINTAINERS
hw/block/meson.build
hw/block/virtio-blk-common.c [new file with mode: 0644]
hw/block/virtio-blk.c
include/hw/virtio/virtio-blk-common.h [new file with mode: 0644]