diff options
author | Jason Wang <jasowang@redhat.com> | 2020-03-26 17:01:24 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-04-02 17:41:40 +0300 |
commit | 2c53d0f64c06f4580588ef16f50f63a112117a02 (patch) | |
tree | b7223a184999bb337c05379b403723fe33aef0b6 /drivers/virtio/vdpa/vdpa_sim/Makefile | |
parent | 4c8cf31885f69e86be0b5b9e6677a26797365e1d (diff) | |
download | linux-2c53d0f64c06f4580588ef16f50f63a112117a02.tar.xz |
vdpasim: vDPA device simulator
This patch implements a software vDPA networking device. The datapath
is implemented through vringh and workqueue. The device has an on-chip
IOMMU which translates IOVA to PA. For kernel virtio drivers, vDPA
simulator driver provides dma_ops. For vhost driers, set_map() methods
of vdpa_config_ops is implemented to accept mappings from vhost.
Currently, vDPA device simulator will loopback TX traffic to RX. So
the main use case for the device is vDPA feature testing, prototyping
and development.
Note, there's no management API implemented, a vDPA device will be
registered once the module is probed. We need to handle this in the
future development.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200326140125.19794-9-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/vdpa/vdpa_sim/Makefile')
-rw-r--r-- | drivers/virtio/vdpa/vdpa_sim/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/virtio/vdpa/vdpa_sim/Makefile b/drivers/virtio/vdpa/vdpa_sim/Makefile new file mode 100644 index 000000000000..b40278f65e04 --- /dev/null +++ b/drivers/virtio/vdpa/vdpa_sim/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_VDPA_SIM) += vdpa_sim.o |