+# Append other parameters to nested command line.
+append="$append supernested.smp=$smp supernested.tcg=$tcg"
+
+extra_args=
+if [ -n "$smp" ]; then extra_args="$extra_args -smp $smp"; fi
+if [ -n "$tcg" ]; then
+ extra_args="$extra_args -machine accel=tcg"
+else
+ extra_args="$extra_args -cpu host -machine accel=kvm"
+fi
+
+echo "Running"
+echo " qemu = $qemu"
+echo " extra_args = $extra_args"
+echo " memory = $memory"
+echo " kernel = $kernel"
+echo " initrd = $initrd"
+echo " disk = $image"
+echo " append = $append"
+
+# Since this could crash the machine, better to sync ...
+sync
+