You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please refer to Running driver tests for general instructions. This section covers just the virtio related aspects.
External loopback
The tests need 2 "NICs" so they require 2 multi-queue tap devices connected with a bridge. See the setup_net.sh script for how such loop is set up on the worker. The script has a loop because it sets up 4 runner instances, since runner only needs one pair of taps and one bridge.
qemu options
Following QEMU options are needed to add the 2 virtio interfaces:
When using vng use -o ' -device virtio-net-pci ... (not the space before the option).
In-VM setup
Source vm-virtio-loop.sh inside the VM to setup the env. It will move one of the virtio interfaces to a netns and add IP addresses. The script needs to be sourced (source /path/to/vm-virtio-loop.sh) because it will export the env variables like NETIF which the tests will need.
After the script is sourced all driver tests executed in the same terminal should run against virtio.