kvmclock, host-model CPU, automatic firmware, suspend to mem and disk

This commit is contained in:
Lukas Greve
2025-06-21 14:45:47 +02:00
parent c75c79a7ce
commit 27391ed096

View File

@ -5,30 +5,31 @@
<memory unit="KiB">4194304</memory>
<currentMemory unit="KiB">1048576</currentMemory>
<vcpu placement='static'>4</vcpu>
<os>
<type arch='x86_64' machine='q35'>hvm</type>
<loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<boot dev='cdrom'/>
<memoryBacking>
<source type="memfd"/>
<access mode="shared"/>
</memoryBacking>
<os firmware="efi">
<type arch="x86_64" machine="q35">hvm</type>
<loader secure='no'/>
<boot dev="cdrom"/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
<cpu mode="host-passthrough" check="none" migratable="on">
<cpu mode="host-model">
<topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
<timer name='kvmclock'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
<suspend-to-mem enabled='yes'/>
<suspend-to-disk enabled='yes'/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>