diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2019-05-19 10:15:39 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-05-19 10:15:39 +0100 |
commit | f6752481f857621725893ba608f7080211cb5242 (patch) | |
tree | e4b778d2a2c2aa9ce19cac3be837808804a7a5d4 | |
parent | 69331d22cfc5606450e9119992502bdbff54c3ca (diff) | |
download | vminstall-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-x | runefivm.sh | 4 |
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 \ |