vms: start with cpu=max

This unlocks some cpu extensions
This commit is contained in:
Jörg Thalheim 2023-11-21 16:26:01 +01:00
parent 4b1f5f873c
commit 47d0dd297f

View File

@ -147,6 +147,8 @@ class BuildVmTask(BaseTask):
f'{vm_config["memorySize"]}M',
"-smp",
str(vm_config["cores"]),
"-cpu",
"max",
"-device",
"virtio-rng-pci",
"-net",
@ -167,6 +169,12 @@ class BuildVmTask(BaseTask):
"virtio-blk-pci,bootindex=1,drive=drive1,serial=root",
"-device",
"virtio-keyboard",
# TODO: audio card
# "-audiodev", "spice,id=audio0",
# "-device", "intel-hda",
# "-device", "hda-duplex,audiodev=audio0",
# TODO: we also need to fixup timezone than...
# "-rtc", "base=localtime,clock=host,driftfix=slew",
"-vga",
"virtio",
"-usb",