runOver9P.sh: enable kvm only if $JEHANNE_KVM=enable

This commit is contained in:
Giacomo Tesio 2022-01-06 17:08:15 +00:00
parent 25a0786488
commit 63f39e4245
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ $JEHANNE/hacking/bin/nc -p 5640 -l -e $JEHANNE/hacking/bin/start-u9fs.sh &
ufspid=$!
export machineflag=pc
if [ "$(uname)" = "Linux" ] && [ -e /dev/kvm ]; then
if [ "$JEHANNE_KVM" = "enable" ] && [ "$(uname)" = "Linux" ] && [ -e /dev/kvm ]; then
export kvmflag='-enable-kvm'
export machineflag='pc,accel=kvm'
if [ ! -w /dev/kvm ]; then