Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f1ddc1

Browse files
committedApr 10, 2025
xtask/qemu: switch to virtio-net nic.
Use virtio-net instead of e1000. This gets network going on non-x86 platforms (aarch64, riscv64). While being at it switch qemu network configuration to modern netdev method. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
1 parent 2feb46b commit 9f1ddc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎xtask/src/qemu.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,10 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
503503
// examples since it slows down the boot some.
504504
let echo_service = if !opt.disable_network && opt.example.is_none() {
505505
cmd.args([
506-
"-nic",
507-
"user,model=e1000,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file",
506+
"-netdev",
507+
"user,id=net0,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file",
508+
"-device",
509+
"virtio-net-pci,netdev=net0",
508510
]);
509511
Some(net::EchoService::start())
510512
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.