Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. A sysfs based management interface is implemented, devices are created and removed through: /sys/devices/virtual/vdpa_simulator/netdev/{create|remove} Netlink based lifecycle management could be implemented for vDPA simulator as well. 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. Signed-off-by: Jason Wang <jasowang@redhat.com>
- Loading branch information