Improve QEMU options (#384)

* Add kvm acceleration

* Ignore signal with serial

* Remove disk warnings

* Remove audio warnings
This commit is contained in:
Vincent Ollivier 2022-08-11 08:44:07 +02:00 committed by GitHub
parent dbe75aa9d8
commit 0dc7c381f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -43,9 +43,16 @@ image: $(img)
cargo bootimage --no-default-features --features $(output) --release --bin moros
dd conv=notrunc if=$(bin) of=$(img)
opts = -m 32 -cpu max -nic model=$(nic) -hda $(img) -soundhw pcspk
opts = -m 32 -nic model=$(nic) -drive file=$(img),format=raw \
-audiodev driver=sdl,id=a0 -machine pcspk-audiodev=a0
ifeq ($(kvm),true)
opts += -cpu host -accel kvm
else
opts += -cpu max
endif
ifeq ($(output),serial)
opts += -display none -serial stdio
opts += -display none -chardev stdio,id=s0,signal=off -serial chardev:s0
endif
qemu: