mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
Merge pull request #91 from kinvolk/vbatts/arm
qemu_template: use more cpus for ARM if available
This commit is contained in:
commit
d46b95ba29
@ -162,7 +162,12 @@ else
|
||||
arm64-usr+aarch64)
|
||||
set -- -machine virt,accel=kvm,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;;
|
||||
arm64-usr+*)
|
||||
set -- -machine virt -cpu cortex-a57 -smp 1 -nographic "$@" ;;
|
||||
if test "${VM_NCPUS}" -gt 4 ; then
|
||||
VM_NCPUS=4
|
||||
elif test "${VM_NCPUS}" -gt 2 ; then
|
||||
VM_NCPUS=2
|
||||
fi
|
||||
set -- -machine virt -cpu cortex-a57 -smp "${VM_NCPUS}" -nographic "$@" ;;
|
||||
*)
|
||||
die "Unsupported arch" ;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user