From 2a2fa884551438cbfb5b84c93ab43edd9f7b4265 Mon Sep 17 00:00:00 2001 From: Maxim Baryshnikov Date: Wed, 10 Aug 2016 19:39:56 +0200 Subject: [PATCH] jailhouse: Improve benchmark and add cmdline parameter passing into launch script. --- buildroot-overlay/root/cell-bench.sh | 13 ++++++++++--- jailhouse | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/buildroot-overlay/root/cell-bench.sh b/buildroot-overlay/root/cell-bench.sh index 25f972a..5b87718 100755 --- a/buildroot-overlay/root/cell-bench.sh +++ b/buildroot-overlay/root/cell-bench.sh @@ -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 diff --git a/jailhouse b/jailhouse index 1a0880c..270b207 160000 --- a/jailhouse +++ b/jailhouse @@ -1 +1 @@ -Subproject commit 1a0880cb726cf46e2d7c311b034090ae6e92771f +Subproject commit 270b2074a96cdde48bedcdd33e6c711d0a342e0c -- 2.39.2