mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
d74c30c811
commit
d9cf55a86d
5 changed files with 64 additions and 23 deletions
20
include/hw/virtio/virtio-blk-common.h
Normal file
20
include/hw/virtio/virtio-blk-common.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Virtio Block Device common helpers
|
||||
*
|
||||
* Copyright IBM, Corp. 2007
|
||||
*
|
||||
* Authors:
|
||||
* Anthony Liguori <aliguori@us.ibm.com>
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2. See
|
||||
* the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef VIRTIO_BLK_COMMON_H
|
||||
#define VIRTIO_BLK_COMMON_H
|
||||
|
||||
#include "hw/virtio/virtio.h"
|
||||
|
||||
extern const VirtIOConfigSizeParams virtio_blk_cfg_size_params;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue