在Hyper-V中使用dpdk

Netvsc

The Netvsc Poll Mode driver (PMD) provides support for the paravirtualized network device for Microsoft Hyper-V.

Netvsc为Hyper-V提供了半虚拟化网络设备支持。

In this release, the hyper PMD provides the basic functionality of packet reception and transmission.

当前版本中,Netvsc提供了包收发的基本功能。

使用

dpdk-devbind.py只作用于pci设备,因此我们使用driverctl将指定网卡转为uio设备。

1
2
DEV_UUID=$(basename $(readlink /sys/class/net/eth1/device))
sudo driverctl -b vmbus set-override $DEV_UUID uio_hv_generic

driverctl的文档中,

1
2
3
set-override <DEVICE> <DRIVER>
Set a driver override for a device. By default the current driver is unbound from the de‐
vice, the new driver is loaded into kernel, bound and the override is saved permanently.

这是说上述命令是永久的,但我发现至少在我的虚拟机中,重启后kernel的网络驱动仍然会接管eth1对应的网卡。


在Hyper-V中使用dpdk
https://blog.chromo.top/2025/05/04/在Hyper-V中使用dpdk/
作者
ChromoXYX
发布于
2025年5月4日
许可协议