net/virtio: introduce vhost-vDPA backend
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 29 Sep 2020 16:14:04 +0000 (18:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 21:16:56 +0000 (23:16 +0200)
commit6b901437056eed3ed7c9932c333ba24ac5be116f
tree514c2b2f4ab51d1bdb4717076d2c40f270668a76
parent844e4683718742b28a7708cc00f7ee7246f92d7b
net/virtio: introduce vhost-vDPA backend

vhost-vDPA is a new virtio backend type introduced by vDPA kernel
framework, which provides abstraction to the vDPA devices and
exposes an unified control interface through a char dev.

This patch adds support to the vhost-vDPA backend. As similar to
the existing vhost kernel backend, a set of virtio_user ops were
introduced for vhost-vDPA backend to handle device specific operations
such as:
 - device setup
 - ioctl message handling
 - queue pair enabling
 - dma map/unmap
vDPA relevant ioctl codes and data structures are also defined in
this patch.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
doc/guides/rel_notes/release_20_11.rst
drivers/net/virtio/meson.build
drivers/net/virtio/virtio_user/vhost.h
drivers/net/virtio/virtio_user/vhost_vdpa.c [new file with mode: 0644]
drivers/net/virtio/virtio_user/virtio_user_dev.c