Lines Matching full:qemu

4 # Carry out a kvm-based run for the specified qemu-cmd file, which might
7 # Usage: kvm-test-1-run-qemu.sh qemu-cmd-dir
9 # qemu-cmd-dir provides the directory containing qemu-cmd file.
14 # at the end of the qemu-cmd file are not optional.
20 T="`mktemp -d ${TMPDIR-/tmp}/kvm-test-1-run-qemu.sh.XXXXXX`"
29 if ! test -f "$resdir/qemu-cmd"
31 echo $0: Nonexistent qemu-cmd file: $resdir/qemu-cmd
37 # Obtain settings from the qemu-cmd file.
38 grep '^#' $resdir/qemu-cmd | sed -e 's/^# //' > $T/qemu-cmd-settings
39 . $T/qemu-cmd-settings
41 # Decorate qemu-cmd with affinity, redirection, backgrounding, and PID capture
47 sed -e 's/^[^#].*$/'"$taskset_command"'& 2>\&1 \&/' < $resdir/qemu-cmd > $T/qemu-cmd
48 echo 'qemu_pid=$!' >> $T/qemu-cmd
49 echo 'echo $qemu_pid > $resdir/qemu-pid' >> $T/qemu-cmd
50 echo 'taskset -c -p $qemu_pid > $resdir/qemu-affinity' >> $T/qemu-cmd
52 # In case qemu refuses to run...
53 echo "NOTE: $QEMU either did not run or was interactive" > $resdir/console.log
55 # Attempt to run qemu
57 ( . $T/qemu-cmd; wait `cat $resdir/qemu-pid`; echo $? > $resdir/qemu-retval ) &
61 sleep 10 # Give qemu's pid a chance to reach the file
62 if test -s "$resdir/qemu-pid"
64 qemu_pid=`cat "$resdir/qemu-pid"`
65 echo Monitoring qemu job at pid $qemu_pid `date`
68 echo Monitoring qemu job at yet-as-unknown pid `date`
91 if test -z "$qemu_pid" && test -s "$resdir/qemu-pid"
93 qemu_pid=`cat "$resdir/qemu-pid"`
111 grep "^(qemu) qemu:" $resdir/kvm-test-1-run*.sh.out >> $resdir/Warnings 2>&1
112 …killpid="`sed -n "s/^(qemu) qemu: terminating on signal [0-9]* from pid \([0-9]*\).*$/\1/p" $resdi…
124 if test -z "$qemu_pid" && test -s "$resdir/qemu-pid"
126 qemu_pid=`cat "$resdir/qemu-pid"`
132 echo Grace period for qemu job at pid $qemu_pid `date`
180 echo Unknown PID, cannot kill qemu command