aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2019-05-19 10:15:39 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2019-05-19 10:15:39 +0100
commitf6752481f857621725893ba608f7080211cb5242 (patch)
treee4b778d2a2c2aa9ce19cac3be837808804a7a5d4
parent69331d22cfc5606450e9119992502bdbff54c3ca (diff)
downloadvminstall-f6752481f857621725893ba608f7080211cb5242.tar.gz
Allow TCG instead of mandating KVM
Now parses ACCEL and CPUTYPE variables, so that a guest can be run using TCG (ACCEL=tcg CPUTYPE=cortex-a57, for example). Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rwxr-xr-xrunefivm.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/runefivm.sh b/runefivm.sh
index 9f876e4..8576495 100755
--- a/runefivm.sh
+++ b/runefivm.sh
@@ -11,6 +11,8 @@ cpus=${CPUS-4}
ram=${RAM-1G}
cdrom=${CDROM-nocdimage}
qemu=${QEMU-/usr/bin/qemu-system-aarch64}
+accel=${ACCEL-kvm}
+cputype=${CPUTYPE-host}
if [ "$bit" = 64 ]; then
sf=on
@@ -84,7 +86,7 @@ else
-device virtio-net-$bus$virtio,netdev=hostnet0,mac=5a:fe:00:$suffix,$vectors"
fi
-args=" -m $ram -smp $cpus -cpu host,aarch64=$sf -machine virt,accel=kvm,gic_version=$gic \
+args=" -m $ram -smp $cpus -cpu $cputype,aarch64=$sf -machine virt,accel=$accel,gic_version=$gic \
-nographic \
-drive if=pflash,format=raw,readonly,file=$efi $efivarpflash \
$netdev \