From: Michal Sojka Date: Thu, 17 May 2018 11:45:24 +0000 (+0200) Subject: Switch off Denver cores before starting Jailhouse X-Git-Tag: 0.0~15 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hercules2020/jailhouse-build.git/commitdiff_plain/619e33ed56c175cc9d9ce87e3bea6a453b292794 Switch off Denver cores before starting Jailhouse Jailhouse either crashes or hangs without this. --- diff --git a/build/rootfs-overlay/etc/init.d/S20jailhouse.sh b/build/rootfs-overlay/etc/init.d/S20jailhouse.sh index d3f988c..a4ddc36 100644 --- a/build/rootfs-overlay/etc/init.d/S20jailhouse.sh +++ b/build/rootfs-overlay/etc/init.d/S20jailhouse.sh @@ -7,7 +7,10 @@ case "$1" in start) printf "Starting Jailhouse: " modprobe jailhouse - taskset 1 jailhouse enable /jailhouse/configs/jetson-tx2.cell + # Switch off Denver cores + echo 0 > /sys/devices/system/cpu/cpu1/online + echo 0 > /sys/devices/system/cpu/cpu2/online + jailhouse enable /jailhouse/configs/jetson-tx2.cell [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop)