mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
qemu_template: use more cpus for ARM if available
But don't hog all `VM_NCPUS`, as we are still emulating them Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
This commit is contained in:
parent
a22f316c23
commit
a97df50696
@ -158,7 +158,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