tests: Re-enable test_vdpa_net

Creating a vdpa_net with an associated MAC address and setting the right
amount of queues in order to fix the integration test related to
vdpa_net.

Fixes: #5756

Signed-off-by: Sebastien Boeuf <seb@rivosinc.com>
This commit is contained in:
Sebastien Boeuf 2025-12-04 11:48:37 +01:00 committed by Rob Bradford
parent 6bda6541be
commit f57b9b2359

View file

@ -7258,7 +7258,6 @@ mod common_parallel {
#[test]
#[cfg(target_arch = "x86_64")]
#[ignore = "See #5756"]
fn test_vdpa_net() {
// Before trying to run the test, verify the vdpa_sim_net module is correctly loaded.
if !exec_host_command_status("lsmod | grep vdpa_sim_net").success() {
@ -7277,7 +7276,7 @@ mod common_parallel {
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
.default_disks()
.default_net()
.args(["--vdpa", "path=/dev/vhost-vdpa-2,num_queues=2"])
.args(["--vdpa", "path=/dev/vhost-vdpa-2,num_queues=3"])
.capture_output()
.spawn()
.unwrap();
@ -7296,6 +7295,9 @@ mod common_parallel {
1
);
guest
.ssh_command("sudo ip link set dev ens6 address 00:e8:ca:33:ba:06")
.unwrap();
guest
.ssh_command("sudo ip addr add 172.16.1.2/24 dev ens6")
.unwrap();