| [ -z "$STANDALONE" ] && source scripts/arch-run.bash |
| qemu=$(search_qemu_binary) |
| if ! ${qemu} -device '?' 2>&1 | grep -F -e \"testdev\" -e \"pc-testdev\" > /dev/null; |
| echo "No Qemu test device support found" |
| ${qemu} -device '?' 2>&1 | grep -F "pci-testdev" > /dev/null; |
| pci_testdev="-device pci-testdev" |
| ${qemu} -device '?' 2>&1 | grep -F "pc-testdev" > /dev/null; |
| pc_testdev="-device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4" |
| pc_testdev="-device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out" |
| command="${qemu} -nodefaults -enable-kvm $pc_testdev -vnc none -serial stdio $pci_testdev $hyperv_testdev" |
| [ -f "$ENV" ] && command+=" -initrd $ENV" |
| command="$(timeout_cmd) $command" |