@@ -420,27 +420,27 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
420
420
// QEMU by defaults enables a ton of devices which slow down boot.
421
421
cmd. arg ( "-nodefaults" ) ;
422
422
423
- cmd. args ( & [ "-device" , "virtio-rng-pci" ] ) ;
423
+ cmd. args ( [ "-device" , "virtio-rng-pci" ] ) ;
424
424
425
425
match arch {
426
426
UefiArch :: AArch64 => {
427
427
// Use a generic ARM environment. Sadly qemu can't emulate a
428
428
// RPi 4 like machine though.
429
- cmd. args ( & [ "-machine" , "virt" ] ) ;
429
+ cmd. args ( [ "-machine" , "virt" ] ) ;
430
430
431
431
// A72 is a very generic 64-bit ARM CPU in the wild.
432
- cmd. args ( & [ "-cpu" , "cortex-a72" ] ) ;
432
+ cmd. args ( [ "-cpu" , "cortex-a72" ] ) ;
433
433
}
434
434
UefiArch :: IA32 => { }
435
435
UefiArch :: X86_64 => {
436
436
// Use a modern machine.
437
- cmd. args ( & [ "-machine" , "q35" ] ) ;
437
+ cmd. args ( [ "-machine" , "q35" ] ) ;
438
438
439
439
// Multi-processor services protocol test needs exactly 4 CPUs.
440
- cmd. args ( & [ "-smp" , "4" ] ) ;
440
+ cmd. args ( [ "-smp" , "4" ] ) ;
441
441
442
442
// Allocate some memory.
443
- cmd. args ( & [ "-m" , "256M" ] ) ;
443
+ cmd. args ( [ "-m" , "256M" ] ) ;
444
444
445
445
// Enable hardware-accelerated virtualization if possible.
446
446
if platform:: is_linux ( ) && !opt. disable_kvm && !opt. ci {
@@ -453,11 +453,11 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
453
453
}
454
454
455
455
// Map the QEMU exit signal to port f4.
456
- cmd. args ( & [ "-device" , "isa-debug-exit,iobase=0xf4,iosize=0x04" ] ) ;
456
+ cmd. args ( [ "-device" , "isa-debug-exit,iobase=0xf4,iosize=0x04" ] ) ;
457
457
458
458
// OVMF debug builds can output information to a serial `debugcon`.
459
459
// Only enable when debugging UEFI boot.
460
- // cmd.args(& [
460
+ // cmd.args([
461
461
// "-debugcon",
462
462
// "file:debug.log",
463
463
// "-global",
@@ -489,9 +489,9 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
489
489
490
490
// When running in headless mode we don't have video, but we can still have
491
491
// QEMU emulate a display and take screenshots from it.
492
- cmd. args ( & [ "-vga" , "std" ] ) ;
492
+ cmd. args ( [ "-vga" , "std" ] ) ;
493
493
if opt. headless {
494
- cmd. args ( & [ "-display" , "none" ] ) ;
494
+ cmd. args ( [ "-display" , "none" ] ) ;
495
495
}
496
496
497
497
let test_disk = tmp_dir. join ( "test_disk.fat.img" ) ;
@@ -511,14 +511,14 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
511
511
// and send the response. That second will also receive logs up
512
512
// until the test runner opens the handle in exclusive mode, but we
513
513
// can just read and ignore those lines.
514
- cmd. args ( & [ "-serial" , "stdio" ] ) ;
515
- cmd. args ( & [ "-serial" , serial_pipe. qemu_arg ( ) ] ) ;
514
+ cmd. args ( [ "-serial" , "stdio" ] ) ;
515
+ cmd. args ( [ "-serial" , serial_pipe. qemu_arg ( ) ] ) ;
516
516
517
517
// Map the QEMU monitor to a pair of named pipes
518
- cmd. args ( & [ "-qmp" , qemu_monitor_pipe. qemu_arg ( ) ] ) ;
518
+ cmd. args ( [ "-qmp" , qemu_monitor_pipe. qemu_arg ( ) ] ) ;
519
519
520
520
// Attach network device with DHCP configured for PXE
521
- cmd. args ( & [
521
+ cmd. args ( [
522
522
"-nic" ,
523
523
"user,model=e1000,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file" ,
524
524
] ) ;
0 commit comments