]> rtime.felk.cvut.cz Git - jailhouse-test.git/commitdiff
jailhouse: Improve benchmark and add cmdline parameter passing into launch script. master
authorMaxim Baryshnikov <barysmax@fel.cvut.cz>
Wed, 10 Aug 2016 17:39:56 +0000 (19:39 +0200)
committerMaxim Baryshnikov <barysmax@fel.cvut.cz>
Wed, 10 Aug 2016 17:39:56 +0000 (19:39 +0200)
buildroot-overlay/root/cell-bench.sh
jailhouse

index 25f972a91c5ddc817495cecdce74efaeaaca38c7..5b877185c838686f65eaf31c4760f48390fca64d 100755 (executable)
@@ -1,6 +1,13 @@
-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
index 1a0880cb726cf46e2d7c311b034090ae6e92771f..270b2074a96cdde48bedcdd33e6c711d0a342e0c 160000 (submodule)
--- a/jailhouse
+++ b/jailhouse
@@ -1 +1 @@
-Subproject commit 1a0880cb726cf46e2d7c311b034090ae6e92771f
+Subproject commit 270b2074a96cdde48bedcdd33e6c711d0a342e0c