Advertisement
mmcze

windows11-ryzen5800x-libvirt-xml-8-AVIC+HV+SecureBoot+io_uring

Dec 22nd, 2022
936
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.78 KB | None | 0 0
  1. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  2.   <name>windows2</name>
  3.   <uuid>3ca72322-a343-32ff-ab2d-119eb4b63e34</uuid>
  4.   <memory unit='KiB'>25165824</memory>
  5.   <currentMemory unit='KiB'>25165824</currentMemory>
  6.   <memoryBacking>
  7.     <hugepages/>
  8.     <nosharepages/>
  9.     <locked/>
  10.   </memoryBacking>
  11.   <vcpu placement='static'>14</vcpu>
  12.   <iothreads>1</iothreads>
  13.   <cputune>
  14.     <vcpupin vcpu='0' cpuset='15'/>
  15.     <vcpupin vcpu='1' cpuset='7'/>
  16.     <vcpupin vcpu='2' cpuset='14'/>
  17.     <vcpupin vcpu='3' cpuset='6'/>
  18.     <vcpupin vcpu='4' cpuset='13'/>
  19.     <vcpupin vcpu='5' cpuset='5'/>
  20.     <vcpupin vcpu='6' cpuset='12'/>
  21.     <vcpupin vcpu='7' cpuset='4'/>
  22.     <vcpupin vcpu='8' cpuset='11'/>
  23.     <vcpupin vcpu='9' cpuset='3'/>
  24.     <vcpupin vcpu='10' cpuset='10'/>
  25.     <vcpupin vcpu='11' cpuset='2'/>
  26.     <vcpupin vcpu='12' cpuset='9'/>
  27.     <vcpupin vcpu='13' cpuset='1'/>
  28.     <emulatorpin cpuset='8'/>
  29.     <iothreadpin iothread='1' cpuset='0'/>
  30.     <emulatorsched scheduler='fifo' priority='10'/>
  31.   </cputune>
  32.   <resource>
  33.     <partition>/machine</partition>
  34.   </resource>
  35.   <os>
  36.     <type arch='x86_64' machine='pc-q35-7.0'>hvm</type>
  37.     <loader readonly='yes' secure='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE_4M.secboot.fd</loader>
  38.     <nvram>/usr/share/OVMF/OVMF_VARS_4M.ms.fd</nvram>
  39.     <bootmenu enable='no'/>
  40.   </os>
  41.   <features>
  42.     <acpi/>
  43.     <apic eoi='on'/>
  44.     <hap state="on"/>
  45.     <hyperv>
  46.       <relaxed state='on'/>
  47.       <vapic state='on'/>
  48.       <spinlocks state='on' retries='8191'/>
  49.       <vpindex state='on'/>
  50.       <runtime state='on'/>
  51.       <synic state='on'/>
  52.       <stimer state='on'>
  53.         <direct state='on'/>
  54.       </stimer>
  55.       <reset state='on'/>
  56.       <vendor_id state='on' value='1234567890ab'/>
  57.       <frequencies state='on'/>
  58.       <reenlightenment state='on'/>
  59.       <tlbflush state='on'/>
  60.       <ipi state='on'/>
  61.       <avic state='on'/>
  62.     </hyperv>
  63.     <kvm>
  64.       <hidden state='on'/>
  65.       <hint-dedicated state='on'/>
  66.       <poll-control state='on'/>
  67.     </kvm>
  68.     <pmu state='off'/>
  69.     <vmport state='off'/>
  70.     <ioapic driver='kvm'/>
  71.     <smm state='on'>
  72.       <tseg unit='MiB'>64</tseg>
  73.     </smm>
  74.   </features>
  75.   <cpu mode='host-passthrough' check='full' migratable='off'>
  76.     <topology sockets='1' dies='1' cores='7' threads='2'/>
  77.     <cache mode='passthrough'/>
  78.     <feature policy='disable' name='x2apic'/>
  79.     <feature policy='require' name='tsc-deadline'/>
  80.     <feature policy='require' name='tsc_adjust'/>
  81.     <feature policy='require' name='arch-capabilities'/>
  82.     <feature policy='require' name='rdctl-no'/>
  83.     <feature policy='require' name='skip-l1dfl-vmentry'/>
  84.     <feature policy='require' name='mds-no'/>
  85.     <feature policy='require' name='pschange-mc-no'/>
  86.     <feature policy='require' name='topoext'/>
  87.     <feature policy='disable' name='svm'/>
  88.     <feature policy='require' name='hypervisor'/>
  89.     <feature policy='require' name='invtsc'/>
  90.     <feature policy='require' name='ibpb'/>
  91.     <feature policy='require' name='virt-ssbd'/>
  92.     <feature policy='require' name='pdpe1gb'/>
  93.     <feature policy='require' name='cmp_legacy'/>
  94.     <feature policy='require' name='xsaves'/>
  95.     <feature policy='require' name='perfctr_core'/>
  96.     <feature policy='require' name='clzero'/>
  97.     <feature policy='require' name='xsaveerptr'/>
  98.   </cpu>
  99.   <clock offset='timezone' timezone='Europe/Prague'>
  100.     <timer name='rtc' present='no' tickpolicy='catchup'/>
  101.     <timer name='pit' tickpolicy='discard'/>
  102.     <timer name='hpet' present='no'/>
  103.     <timer name='kvmclock' present='no'/>
  104.     <timer name='hypervclock' present='yes'/>
  105.     <timer name='tsc' present='yes' mode='native'/>
  106.   </clock>
  107.   <on_poweroff>destroy</on_poweroff>
  108.   <on_reboot>destroy</on_reboot>
  109.   <on_crash>destroy</on_crash>
  110.   <pm>
  111.     <suspend-to-mem enabled='no'/>
  112.     <suspend-to-disk enabled='no'/>
  113.   </pm>
  114.   <devices>
  115.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  116.     <disk type='file' device='disk'>
  117.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  118.       <source file='/crypt/win2-storage/disk.raw'/>
  119.       <backingStore/>
  120.       <target dev='vda' bus='scsi'/>
  121.       <boot order='1'/>
  122.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  123.     </disk>
  124.     <disk type='file' device='disk'>
  125.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  126.       <source file='/zrcadlo2/win2-storage2/disk.raw'/>
  127.       <backingStore/>
  128.       <target dev='vdb' bus='scsi'/>
  129.       <address type='drive' controller='0' bus='0' target='1' unit='0'/>
  130.     </disk>
  131.     <disk type='file' device='disk'>
  132.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  133.       <source file='/stripovanej/win2-storage3/disk.raw'/>
  134.       <backingStore/>
  135.       <target dev='vdc' bus='scsi'/>
  136.       <address type='drive' controller='0' bus='0' target='2' unit='0'/>
  137.     </disk>
  138.     <disk type='file' device='disk'>
  139.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  140.       <source file='/ssdpool/win2-storage4/disk.raw'/>
  141.       <backingStore/>
  142.       <target dev='vdd' bus='scsi'/>
  143.       <address type='drive' controller='0' bus='0' target='3' unit='0'/>
  144.     </disk>
  145.     <controller type='pci' index='0' model='pcie-root'/>
  146.     <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  147.       <model name='i82801b11-bridge'/>
  148.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0' multifunction='on'/>
  149.     </controller>
  150.     <controller type='pci' index='2' model='pci-bridge'>
  151.       <model name='pci-bridge'/>
  152.       <target chassisNr='2'/>
  153.       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  154.     </controller>
  155.     <controller type='pci' index='3' model='pcie-root-port'>
  156.       <model name='pcie-root-port'/>
  157.       <target chassis='3' port='0x10'/>
  158.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  159.     </controller>
  160.     <controller type='pci' index='4' model='pcie-root-port'>
  161.       <model name='pcie-root-port'/>
  162.       <target chassis='4' port='0x11'/>
  163.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  164.     </controller>
  165.     <controller type='pci' index='5' model='pcie-root-port'>
  166.       <model name='pcie-root-port'/>
  167.       <target chassis='5' port='0x12'/>
  168.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  169.     </controller>
  170.     <controller type='pci' index='6' model='pcie-root-port'>
  171.       <model name='pcie-root-port'/>
  172.       <target chassis='6' port='0x13'/>
  173.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  174.     </controller>
  175.     <controller type='pci' index='7' model='pcie-root-port'>
  176.       <model name='pcie-root-port'/>
  177.       <target chassis='7' port='0x8'/>
  178.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  179.     </controller>
  180.     <controller type='pci' index='8' model='pcie-root-port'>
  181.       <model name='pcie-root-port'/>
  182.       <target chassis='8' port='0x9'/>
  183.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  184.     </controller>
  185.     <controller type='scsi' index='0' model='virtio-scsi'>
  186.       <driver queues='8' iothread='1'/>
  187.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x2'/>
  188.     </controller>
  189.     <controller type='sata' index='0'>
  190.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  191.     </controller>
  192.     <controller type='usb' index='0' model='nec-xhci' ports='6'>
  193.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  194.     </controller>
  195.     <interface type='bridge'>
  196.       <mac address='52:54:00:46:db:27'/>
  197.       <source bridge='br0'/>
  198.       <model type='virtio'/>
  199.       <driver queues='8'/>
  200.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  201.     </interface>
  202.     <input type='mouse' bus='ps2'/>
  203.     <input type='keyboard' bus='ps2'/>
  204.     <tpm model='tpm-tis'>
  205.       <backend type='emulator' version='2.0'/>
  206.     </tpm>
  207.     <audio id='1' type='none'/>
  208.     <hostdev mode='subsystem' type='pci' managed='yes'>
  209.       <driver name='vfio'/>
  210.       <source>
  211.         <address domain='0x0000' bus='0x27' slot='0x00' function='0x0'/>
  212.       </source>
  213.       <rom file='/usr/share/ovmf/Sapphire.RX580.8192.170323.rom'/>
  214.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' multifunction='on'/>
  215.     </hostdev>
  216.     <hostdev mode='subsystem' type='pci' managed='yes'>
  217.       <driver name='vfio'/>
  218.       <source>
  219.         <address domain='0x0000' bus='0x27' slot='0x00' function='0x1'/>
  220.       </source>
  221.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
  222.     </hostdev>
  223.     <hostdev mode='subsystem' type='usb' managed='yes'>
  224.       <source>
  225.         <vendor id='0x0458'/>
  226.         <product id='0x6007'/>
  227.         <address bus='3' device='2'/>
  228.       </source>
  229.       <address type='usb' bus='0' port='3'/>
  230.     </hostdev>
  231.     <hostdev mode='subsystem' type='pci' managed='yes'>
  232.       <driver name='vfio'/>
  233.       <source>
  234.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x3'/>
  235.       </source>
  236.       <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  237.     </hostdev>
  238.     <memballoon model='none'/>
  239.   </devices>
  240.   <seclabel type='dynamic' model='dac' relabel='yes'/>
  241.   <qemu:commandline>
  242.     <qemu:arg value='-smbios'/>
  243.     <qemu:arg value='type=3,manufacturer=MSI,version=1000'/>
  244.     <qemu:arg value='-smbios'/>
  245.     <qemu:arg value='type=4,manufacturer=AMD,version=1000'/>
  246.     <qemu:arg value='-smbios'/>
  247.     <qemu:arg value='type=17,manufacturer=Micron'/>
  248.   </qemu:commandline>
  249. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement