]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa: add vdpa simulator for block device
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Mon, 15 Mar 2021 16:34:47 +0000 (17:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:53 +0000 (04:55 -0400)
commitf5f301ad3adf558ca9159c9f10202af89ffa1df4
treedaa8b8c19c4cae2cc96c0d6a445ae425958a49c9
parentdb3b7dd91c4177a7c4372abb287e77945612eb62
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>
drivers/vdpa/Kconfig
drivers/vdpa/vdpa_sim/Makefile
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c [new file with mode: 0644]