Advertisement
mmcze

windows11-ryzen5800x-libvirt-xml-10-AVIC+HV+SecureBoot+io_uring+pv-ipi+rx7900xt

May 10th, 2023
1,400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.42 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 mode='custom'>
  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.       <pv-ipi state='on'/>
  68.     </kvm>
  69.     <pmu state='off'/>
  70.     <vmport state='off'/>
  71.     <smm state='on'>
  72.       <tseg unit='MiB'>64</tseg>
  73.     </smm>
  74.     <ioapic driver='kvm'/>
  75.   </features>
  76.   <cpu mode='host-passthrough' check='full' migratable='off'>
  77.     <topology sockets='1' dies='1' cores='7' threads='2'/>
  78.     <cache mode='passthrough'/>
  79.     <feature policy='disable' name='x2apic'/>
  80.     <feature policy='require' name='tsc-deadline'/>
  81.     <feature policy='require' name='tsc_adjust'/>
  82.     <feature policy='require' name='arch-capabilities'/>
  83.     <feature policy='require' name='rdctl-no'/>
  84.     <feature policy='require' name='skip-l1dfl-vmentry'/>
  85.     <feature policy='require' name='mds-no'/>
  86.     <feature policy='require' name='pschange-mc-no'/>
  87.     <feature policy='require' name='topoext'/>
  88.     <feature policy='disable' name='svm'/>
  89.     <feature policy='require' name='hypervisor'/>
  90.     <feature policy='require' name='invtsc'/>
  91.     <feature policy='require' name='ibpb'/>
  92.     <feature policy='require' name='virt-ssbd'/>
  93.     <feature policy='require' name='pdpe1gb'/>
  94.     <feature policy='require' name='cmp_legacy'/>
  95.     <feature policy='require' name='xsaves'/>
  96.     <feature policy='require' name='perfctr_core'/>
  97.     <feature policy='require' name='clzero'/>
  98.     <feature policy='require' name='xsaveerptr'/>
  99.   </cpu>
  100.   <clock offset='timezone' timezone='Europe/Prague'>
  101.     <timer name='rtc' present='no' tickpolicy='catchup'/>
  102.     <timer name='pit' tickpolicy='discard'/>
  103.     <timer name='hpet' present='no'/>
  104.     <timer name='kvmclock' present='no'/>
  105.     <timer name='hypervclock' present='yes'/>
  106.     <timer name='tsc' present='yes' mode='native'/>
  107.   </clock>
  108.   <on_poweroff>destroy</on_poweroff>
  109.   <on_reboot>destroy</on_reboot>
  110.   <on_crash>destroy</on_crash>
  111.   <pm>
  112.     <suspend-to-mem enabled='no'/>
  113.     <suspend-to-disk enabled='no'/>
  114.   </pm>
  115.   <devices>
  116.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  117.     <disk type='file' device='disk'>
  118.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  119.       <source file='/crypt/win2-storage/disk.raw'/>
  120.       <backingStore/>
  121.       <target dev='vda' bus='scsi'/>
  122.       <boot order='1'/>
  123.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  124.     </disk>
  125.     <disk type='file' device='disk'>
  126.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  127.       <source file='/zrcadlo2/win2-storage2/disk.raw'/>
  128.       <backingStore/>
  129.       <target dev='vdb' bus='scsi'/>
  130.       <address type='drive' controller='0' bus='0' target='1' unit='0'/>
  131.     </disk>
  132.     <disk type='file' device='disk'>
  133.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  134.       <source file='/stripovanej/win2-storage3/disk.raw'/>
  135.       <backingStore/>
  136.       <target dev='vdc' bus='scsi'/>
  137.       <address type='drive' controller='0' bus='0' target='2' unit='0'/>
  138.     </disk>
  139.     <disk type='file' device='disk'>
  140.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  141.       <source file='/ssdpool/win2-storage4/disk.raw'/>
  142.       <backingStore/>
  143.       <target dev='vdd' bus='scsi'/>
  144.       <address type='drive' controller='0' bus='0' target='3' unit='0'/>
  145.     </disk>
  146.     <controller type='pci' index='0' model='pcie-root'/>
  147.     <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  148.       <model name='i82801b11-bridge'/>
  149.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0' multifunction='on'/>
  150.     </controller>
  151.     <controller type='pci' index='2' model='pci-bridge'>
  152.       <model name='pci-bridge'/>
  153.       <target chassisNr='2'/>
  154.       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  155.     </controller>
  156.     <controller type='pci' index='3' model='pcie-root-port'>
  157.       <model name='pcie-root-port'/>
  158.       <target chassis='3' port='0x10'/>
  159.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  160.     </controller>
  161.     <controller type='pci' index='4' model='pcie-root-port'>
  162.       <model name='pcie-root-port'/>
  163.       <target chassis='4' port='0x11'/>
  164.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  165.     </controller>
  166.     <controller type='pci' index='5' model='pcie-root-port'>
  167.       <model name='pcie-root-port'/>
  168.       <target chassis='5' port='0x12'/>
  169.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  170.     </controller>
  171.     <controller type='pci' index='6' model='pcie-root-port'>
  172.       <model name='pcie-root-port'/>
  173.       <target chassis='6' port='0x13'/>
  174.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  175.     </controller>
  176.     <controller type='pci' index='7' model='pcie-root-port'>
  177.       <model name='pcie-root-port'/>
  178.       <target chassis='7' port='0x8'/>
  179.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  180.     </controller>
  181.     <controller type='pci' index='8' model='pcie-root-port'>
  182.       <model name='pcie-root-port'/>
  183.       <target chassis='8' port='0x9'/>
  184.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  185.     </controller>
  186.     <controller type='scsi' index='0' model='virtio-scsi'>
  187.       <driver queues='8' iothread='1'/>
  188.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x2'/>
  189.     </controller>
  190.     <controller type='sata' index='0'>
  191.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  192.     </controller>
  193.     <controller type='usb' index='0' model='nec-xhci' ports='6'>
  194.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  195.     </controller>
  196.     <interface type='bridge'>
  197.       <mac address='52:54:00:46:db:27'/>
  198.       <source bridge='br0'/>
  199.       <model type='virtio'/>
  200.       <driver queues='8'/>
  201.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  202.     </interface>
  203.     <input type='mouse' bus='ps2'/>
  204.     <input type='keyboard' bus='ps2'/>
  205.     <tpm model='tpm-tis'>
  206.       <backend type='emulator' version='2.0'/>
  207.     </tpm>
  208.     <audio id='1' type='none'/>
  209.     <hostdev mode='subsystem' type='pci' managed='yes'>
  210.       <driver name='vfio'/>
  211.       <source>
  212.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x0'/>
  213.       </source>
  214.       <rom file='/usr/share/ovmf/rx7900xt.rom'/>
  215.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' multifunction='on'/>
  216.     </hostdev>
  217.     <hostdev mode='subsystem' type='pci' managed='yes'>
  218.       <driver name='vfio'/>
  219.       <source>
  220.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x1'/>
  221.       </source>
  222.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
  223.     </hostdev>
  224.     <hostdev mode='subsystem' type='pci' managed='yes'>
  225.       <driver name='vfio'/>
  226.       <source>
  227.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x2'/>
  228.       </source>
  229.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x2'/>
  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='0x03' slot='0x00' function='0x3'/>
  237.     </hostdev>
  238.  
  239.     <hostdev mode='subsystem' type='usb' managed='yes'>
  240.       <source>
  241.         <vendor id='0x0458'/>
  242.         <product id='0x6007'/>
  243.         <address bus='3' device='2'/>
  244.       </source>
  245.       <address type='usb' bus='0' port='3'/>
  246.     </hostdev>
  247.     <hostdev mode='subsystem' type='pci' managed='yes'>
  248.       <driver name='vfio'/>
  249.       <source>
  250.         <address domain='0x0000' bus='0x2b' slot='0x00' function='0x3'/>
  251.       </source>
  252.       <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  253.     </hostdev>
  254.     <watchdog model='itco' action='reset'/>
  255.     <memballoon model='none'/>
  256.   </devices>
  257.   <seclabel type='dynamic' model='dac' relabel='yes'/>
  258.   <qemu:commandline>
  259.     <qemu:arg value='-smbios'/>
  260.     <qemu:arg value='type=3,manufacturer=MSI,version=1000'/>
  261.     <qemu:arg value='-smbios'/>
  262.     <qemu:arg value='type=4,manufacturer=AMD,version=1000'/>
  263.     <qemu:arg value='-smbios'/>
  264.     <qemu:arg value='type=17,manufacturer=Micron'/>
  265.   </qemu:commandline>
  266. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement