-echo "creating hpet-demo cell..."
+echo "creating bench cell..."
jailhouse cell create /jailhouse/configs/bench.cell
echo "loading binary into cell..."
-jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000
+
+set -e;
+if [ -n "$*" ]; then
+ jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000 -s "$*" -a 0xf0000
+else
+ jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000
+fi
+
echo "starting it..."
-jailhouse cell start bench
\ No newline at end of file
+jailhouse cell start bench