Compare commits

...

5 Commits

6 changed files with 32 additions and 48 deletions

View File

@@ -21,14 +21,14 @@
<topology sockets="1" dies="1" cores="2" threads="2"/> <topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu> </cpu>
<clock offset='utc'> <clock offset='utc'>
<timer name='kvmclock' tickpolicy='catchup'/> <timer name='kvmclock'/>
</clock> </clock>
<on_poweroff>destroy</on_poweroff> <on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot> <on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash> <on_crash>destroy</on_crash>
<pm> <pm>
<suspend-to-mem enabled='no'/> <suspend-to-mem enabled='yes'/>
<suspend-to-disk enabled='no'/> <suspend-to-disk enabled='yes'/>
</pm> </pm>
<devices> <devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator> <emulator>/usr/bin/qemu-system-x86_64</emulator>
@@ -41,7 +41,6 @@
<controller type='virtio-serial' index='0'> <controller type='virtio-serial' index='0'>
<model type='virtio-non-transitional'/> <model type='virtio-non-transitional'/>
</controller> </controller>
<smartcard mode='host'/>
<interface type='user'> <interface type='user'>
<backend type='passt'/> <backend type='passt'/>
<model type='virtio'/> <model type='virtio'/>
@@ -60,9 +59,10 @@
<tpm model="tpm-crb"> <tpm model="tpm-crb">
<backend type="emulator" version="2.0"/> <backend type="emulator" version="2.0"/>
</tpm> </tpm>
<graphics type="dbus"> <graphics type="spice">
<listen type="none"/>
<image compression="off"/>
<gl enable="yes"/> <gl enable="yes"/>
<audio id="1"/>
</graphics> </graphics>
<video> <video>
<model type="virtio" heads="1" primary="yes"> <model type="virtio" heads="1" primary="yes">
@@ -80,9 +80,6 @@
<target dir="mnt"/> <target dir="mnt"/>
<readonly/> <readonly/>
</filesystem> </filesystem>
<vsock model="virtio-non-transitional">
<cid auto="yes"/>
</vsock>
<iommu model="virtio"/> <iommu model="virtio"/>
</devices> </devices>
</domain> </domain>

View File

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

View File

@@ -17,15 +17,12 @@
<features> <features>
<acpi/> <acpi/>
<apic/> <apic/>
<vmport state='off'/>
</features> </features>
<cpu mode="host-passthrough" check="none" migratable="on"> <cpu mode="host-model">
<topology sockets="1" dies="1" cores="2" threads="2"/> <topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu> </cpu>
<clock offset='utc'> <clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/> <timer name='kvmclock'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock> </clock>
<on_poweroff>destroy</on_poweroff> <on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot> <on_reboot>restart</on_reboot>

View File

@@ -9,23 +9,20 @@
<access mode="shared"/> <access mode="shared"/>
</memoryBacking> </memoryBacking>
<vcpu placement='static'>4</vcpu> <vcpu placement='static'>4</vcpu>
<os> <os firmware="efi">
<type arch='x86_64' machine='q35'>hvm</type> <type arch="x86_64" machine="q35">hvm</type>
<loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <loader secure='no'/>
<boot dev='cdrom'/> <boot dev="cdrom"/>
</os> </os>
<features> <features>
<acpi/> <acpi/>
<apic/> <apic/>
<vmport state='off'/>
</features> </features>
<cpu mode="host-passthrough" check="none" migratable="on"> <cpu mode="host-model">
<topology sockets="1" dies="1" cores="2" threads="2"/> <topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu> </cpu>
<clock offset='utc'> <clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/> <timer name='kvmclock'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock> </clock>
<on_poweroff>destroy</on_poweroff> <on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot> <on_reboot>restart</on_reboot>

View File

@@ -8,10 +8,10 @@
<access mode="shared"/> <access mode="shared"/>
</memoryBacking> </memoryBacking>
<vcpu placement='static'>4</vcpu> <vcpu placement='static'>4</vcpu>
<os> <os firmware="efi">
<type arch='x86_64' machine='q35'>hvm</type> <type arch="x86_64" machine="q35">hvm</type>
<loader readonly='yes' secure='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <loader secure='no'/>
<boot dev='cdrom'/> <boot dev="cdrom"/>
</os> </os>
<features> <features>
<acpi/> <acpi/>
@@ -37,15 +37,11 @@
<kvm> <kvm>
<hidden state='on'/> <hidden state='on'/>
</kvm> </kvm>
<vmport state="off"/>
</features> </features>
<cpu mode="host-passthrough" check="none" migratable="on"> <cpu mode="host-model">
<topology sockets="1" dies="1" cores="2" threads="2"/> <topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu> </cpu>
<clock offset="localtime"> <clock offset="localtime">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
<timer name="hypervclock" present="yes"/> <timer name="hypervclock" present="yes"/>
</clock> </clock>
<on_poweroff>destroy</on_poweroff> <on_poweroff>destroy</on_poweroff>

View File

@@ -37,15 +37,11 @@
<kvm> <kvm>
<hidden state="on"/> <hidden state="on"/>
</kvm> </kvm>
<vmport state="off"/>
</features> </features>
<cpu mode="host-passthrough" check="none" migratable="on"> <cpu mode="host-model">
<topology sockets="1" dies="1" cores="2" threads="2"/> <topology sockets="1" dies="1" cores="2" threads="2"/>
</cpu> </cpu>
<clock offset="localtime"> <clock offset="localtime">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
<timer name="hypervclock" present="yes"/> <timer name="hypervclock" present="yes"/>
</clock> </clock>
<on_poweroff>destroy</on_poweroff> <on_poweroff>destroy</on_poweroff>