mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
Runner: Enable QEMU's KVM mode by default
This makes QEMU run significantly faster on Linux systems with KVM.
This commit is contained in:
parent
44fb71261a
commit
16e66716ba
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,7 @@ elif [ "$1" = "qtap" ]; then
|
||||||
# ./run qtap: qemu with tap
|
# ./run qtap: qemu with tap
|
||||||
sudo $SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
sudo $SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
||||||
$SERENITY_EXTRA_QEMU_ARGS \
|
$SERENITY_EXTRA_QEMU_ARGS \
|
||||||
|
-enable-kvm \
|
||||||
-d cpu_reset,guest_errors \
|
-d cpu_reset,guest_errors \
|
||||||
-device VGA,vgamem_mb=64 \
|
-device VGA,vgamem_mb=64 \
|
||||||
-debugcon stdio \
|
-debugcon stdio \
|
||||||
|
@ -41,6 +42,7 @@ elif [ "$1" = "qgrub" ]; then
|
||||||
# ./run qgrub: qemu with grub
|
# ./run qgrub: qemu with grub
|
||||||
$SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
$SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
||||||
$SERENITY_EXTRA_QEMU_ARGS \
|
$SERENITY_EXTRA_QEMU_ARGS \
|
||||||
|
-enable-kvm \
|
||||||
-d cpu_reset,guest_errors \
|
-d cpu_reset,guest_errors \
|
||||||
-device VGA,vgamem_mb=64 \
|
-device VGA,vgamem_mb=64 \
|
||||||
-debugcon stdio \
|
-debugcon stdio \
|
||||||
|
@ -53,6 +55,7 @@ else
|
||||||
# ./run: qemu with user networking
|
# ./run: qemu with user networking
|
||||||
$SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
$SERENITY_QEMU_BIN -s -m ${SERENITY_RAM_SIZE:-128} \
|
||||||
$SERENITY_EXTRA_QEMU_ARGS \
|
$SERENITY_EXTRA_QEMU_ARGS \
|
||||||
|
-enable-kvm \
|
||||||
-d cpu_reset,guest_errors \
|
-d cpu_reset,guest_errors \
|
||||||
-device VGA,vgamem_mb=64 \
|
-device VGA,vgamem_mb=64 \
|
||||||
-debugcon stdio \
|
-debugcon stdio \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue