diff options
author | Max Gurtovoy | 2021-03-15 17:34:47 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2021-05-03 04:55:53 -0400 |
commit | 0c853c2c2924464bd86537164ed18d5d953b4909 (patch) | |
tree | daa8b8c19c4cae2cc96c0d6a445ae425958a49c9 /drivers/vdpa/Kconfig | |
parent | 9d6d97bff7909910af537fd3903d05338adaaefa (diff) |
vdpa: add vdpa simulator for block device
This will allow running vDPA for virtio block protocol.
It's a preliminary implementation with a simple request handling:
for each request, only the status (last byte) is set.
It's always set to VIRTIO_BLK_S_OK.
Also input validation is missing and will be added in the next commits.
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
[sgarzare: various cleanups/fixes]
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-12-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/Kconfig')
-rw-r--r-- | drivers/vdpa/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig index 6e82a0e228c2..a503c1b2bfd9 100644 --- a/drivers/vdpa/Kconfig +++ b/drivers/vdpa/Kconfig @@ -26,6 +26,13 @@ config VDPA_SIM_NET help vDPA networking device simulator which loops TX traffic back to RX. +config VDPA_SIM_BLOCK + tristate "vDPA simulator for block device" + depends on VDPA_SIM + help + vDPA block device simulator which terminates IO request in a + memory buffer. + config IFCVF tristate "Intel IFC VF vDPA driver" depends on PCI_MSI |