diff options
Diffstat (limited to 'debvm-run')
-rwxr-xr-x | debvm-run | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -93,7 +93,6 @@ set -- \ -no-user-config \ -name "debvm-run $IMAGE" \ -m 1G \ - -smp "$(nproc)" \ -kernel "$KERNELTMP" \ -initrd "$INITRDTMP" \ -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \ @@ -117,17 +116,25 @@ else case "$VMARCH" in arm64) QEMU=qemu-system-aarch64 - set -- -machine virt -cpu max "$@" + set -- -machine virt -cpu max -smp "$(nproc)" "$@" ;; arm|armel|armhf) QEMU=qemu-system-arm - set -- -machine virt -cpu max "$@" + set -- -machine virt -cpu max -smp "$(nproc)" "$@" ;; ppc64el) QEMU=qemu-system-ppc64 ;; + mips64el) + QEMU="qemu-system-$VMARCH" + set -- -cpu 5KEc "$@" + ;; + mipsel) + QEMU="qemu-system-$VMARCH" + ;; *) QEMU="qemu-system-$VMARCH" + set -- -smp "$(nproc)" "$@" ;; esac fi |