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=${TMPDIR-/tmp}/kvm-test-1-run-qemu.sh.$$
30 if ! test -f "$resdir/qemu-cmd"
32 echo $0: Nonexistent qemu-cmd file: $resdir/qemu-cmd
38 # Obtain settings from the qemu-cmd file.
39 grep '^#' $resdir/qemu-cmd | sed -e 's/^# //' > $T/qemu-cmd-settings
40 . $T/qemu-cmd-settings
42 # Decorate qemu-cmd with affinity, redirection, backgrounding, and PID capture
48 sed -e 's/^[^#].*$/'"$taskset_command"'& 2>\&1 \&/' < $resdir/qemu-cmd > $T/qemu-cmd
49 echo 'qemu_pid=$!' >> $T/qemu-cmd
50 echo 'echo $qemu_pid > $resdir/qemu-pid' >> $T/qemu-cmd
51 echo 'taskset -c -p $qemu_pid > $resdir/qemu-affinity' >> $T/qemu-cmd
53 # In case qemu refuses to run...
54 echo "NOTE: $QEMU either did not run or was interactive" > $resdir/console.log
56 # Attempt to run qemu
58 ( . $T/qemu-cmd; wait `cat $resdir/qemu-pid`; echo $? > $resdir/qemu-retval ) &
62 sleep 10 # Give qemu's pid a chance to reach the file
63 if test -s "$resdir/qemu-pid"
65 qemu_pid=`cat "$resdir/qemu-pid"`
66 echo Monitoring qemu job at pid $qemu_pid `date`
69 echo Monitoring qemu job at yet-as-unknown pid `date`
92 if test -z "$qemu_pid" && test -s "$resdir/qemu-pid"
94 qemu_pid=`cat "$resdir/qemu-pid"`
112 grep "^(qemu) qemu:" $resdir/kvm-test-1-run.sh.out >> $resdir/Warnings 2>&1
113 …killpid="`sed -n "s/^(qemu) qemu: terminating on signal [0-9]* from pid \([0-9]*\).*$/\1/p" $resdi…
125 if test -z "$qemu_pid" && test -s "$resdir/qemu-pid"
127 qemu_pid=`cat "$resdir/qemu-pid"`
133 echo Grace period for qemu job at pid $qemu_pid `date`
181 echo Unknown PID, cannot kill qemu command