在 2022/7/5 01:16, Stefano Garzarella 写道:
The first 3 patches fix various problems I have encountered with
virtio_test (they may go without this series, but I included to allow you
to test the series).
Patch 4 is in preparation of patch 5, moving the feature negotiation when
we initialize the device.
Patch 5 add the support of vhost-vdpa in virtio_test
Patch 6 add vdpa_test.ko based on vdpa_sim_test.c, so we can reuse most of
the code coming from the vdpa_sim framework.
I tested in this way:
$ modprobe vdpa_sim
$ modprobe vhost-vdpa
# load the vdpasim_test device
$ insmod vdpa_test.ko
# create a new vdpasim_test device
$ vdpa dev add mgmtdev vdpasim_test name dev0
I wonder what's the benefit of using a dedicated test device other than networking? (already a loopback device anyhow).