Advertisement
mmcze

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

Mar 2nd, 2024
1,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.25 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.     <smbios mode='host'/>
  41.   </os>
  42.   <features>
  43.     <acpi/>
  44.     <apic eoi='on'/>
  45.     <hap state='on'/>
  46.     <hyperv mode='custom'>
  47.       <relaxed state='on'/>
  48.       <vapic state='on'/>
  49.       <spinlocks state='on' retries='8191'/>
  50.       <vpindex state='on'/>
  51.       <runtime state='on'/>
  52.       <synic state='on'/>
  53.       <stimer state='on'>
  54.         <direct state='on'/>
  55.       </stimer>
  56.       <reset state='on'/>
  57.       <vendor_id state='on' value='1234567890ab'/>
  58.       <frequencies state='on'/>
  59.       <reenlightenment state='on'/>
  60.       <tlbflush state='on'/>
  61.       <ipi state='on'/>
  62.       <avic state='on'/>
  63.     </hyperv>
  64.     <kvm>
  65.       <hidden state='on'/>
  66.       <hint-dedicated state='on'/>
  67.       <poll-control state='on'/>
  68.       <pv-ipi state='on'/>
  69.     </kvm>
  70.     <pmu state='off'/>
  71.     <vmport state='off'/>
  72.     <smm state='on'>
  73.       <tseg unit='MiB'>64</tseg>
  74.     </smm>
  75.     <ioapic driver='kvm'/>
  76.   </features>
  77.   <cpu mode='host-passthrough' check='full' migratable='off'>
  78.     <topology sockets='1' dies='1' cores='7' threads='2'/>
  79.     <cache mode='passthrough'/>
  80.     <feature policy='disable' name='x2apic'/>
  81.     <feature policy='require' name='tsc-deadline'/>
  82.     <feature policy='require' name='tsc_adjust'/>
  83.     <feature policy='require' name='arch-capabilities'/>
  84.     <feature policy='require' name='rdctl-no'/>
  85.     <feature policy='require' name='skip-l1dfl-vmentry'/>
  86.     <feature policy='require' name='mds-no'/>
  87.     <feature policy='require' name='pschange-mc-no'/>
  88.     <feature policy='require' name='topoext'/>
  89.     <feature policy='disable' name='svm'/>
  90.     <feature policy='require' name='hypervisor'/>
  91.     <feature policy='require' name='invtsc'/>
  92.     <feature policy='require' name='ibpb'/>
  93.     <feature policy='require' name='virt-ssbd'/>
  94.     <feature policy='require' name='pdpe1gb'/>
  95.     <feature policy='require' name='cmp_legacy'/>
  96.     <feature policy='require' name='xsaves'/>
  97.     <feature policy='require' name='perfctr_core'/>
  98.     <feature policy='require' name='clzero'/>
  99.     <feature policy='require' name='xsaveerptr'/>
  100.   </cpu>
  101.   <clock offset='timezone' timezone='Europe/Prague'>
  102.     <timer name='rtc' present='no' tickpolicy='catchup'/>
  103.     <timer name='pit' tickpolicy='discard'/>
  104.     <timer name='hpet' present='no'/>
  105.     <timer name='kvmclock' present='no'/>
  106.     <timer name='hypervclock' present='yes'/>
  107.     <timer name='tsc' present='yes' mode='native'/>
  108.   </clock>
  109.   <on_poweroff>destroy</on_poweroff>
  110.   <on_reboot>destroy</on_reboot>
  111.   <on_crash>destroy</on_crash>
  112.   <pm>
  113.     <suspend-to-mem enabled='no'/>
  114.     <suspend-to-disk enabled='no'/>
  115.   </pm>
  116.   <devices>
  117.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  118.     <disk type='file' device='disk'>
  119.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  120.       <source file='/crypt/win2-storage/disk.raw'/>
  121.       <backingStore/>
  122.       <target dev='vda' bus='scsi'/>
  123.       <boot order='1'/>
  124.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  125.     </disk>
  126.     <disk type='file' device='disk'>
  127.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  128.       <source file='/zrcadlo2/win2-storage2/disk.raw'/>
  129.       <backingStore/>
  130.       <target dev='vdb' bus='scsi'/>
  131.       <address type='drive' controller='0' bus='0' target='1' unit='0'/>
  132.     </disk>
  133.     <disk type='file' device='disk'>
  134.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  135.       <source file='/stripovanej/win2-storage3/disk.raw'/>
  136.       <backingStore/>
  137.       <target dev='vdc' bus='scsi'/>
  138.       <address type='drive' controller='0' bus='0' target='2' unit='0'/>
  139.     </disk>
  140.     <disk type='file' device='disk'>
  141.       <driver name='qemu' type='raw' cache='none' io='io_uring' discard='unmap'/>
  142.       <source file='/ssdpool/win2-storage4/disk.raw'/>
  143.       <backingStore/>
  144.       <target dev='vdd' bus='scsi'/>
  145.       <address type='drive' controller='0' bus='0' target='3' unit='0'/>
  146.     </disk>
  147.     <controller type='pci' index='0' model='pcie-root'/>
  148.     <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  149.       <model name='i82801b11-bridge'/>
  150.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0' multifunction='on'/>
  151.     </controller>
  152.     <controller type='pci' index='2' model='pci-bridge'>
  153.       <model name='pci-bridge'/>
  154.       <target chassisNr='2'/>
  155.       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  156.     </controller>
  157.     <controller type='pci' index='3' model='pcie-root-port'>
  158.       <model name='pcie-root-port'/>
  159.       <target chassis='3' port='0x10'/>
  160.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  161.     </controller>
  162.     <controller type='pci' index='4' model='pcie-root-port'>
  163.       <model name='pcie-root-port'/>
  164.       <target chassis='4' port='0x11'/>
  165.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  166.     </controller>
  167.     <controller type='pci' index='5' model='pcie-root-port'>
  168.       <model name='pcie-root-port'/>
  169.       <target chassis='5' port='0x12'/>
  170.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  171.     </controller>
  172.     <controller type='pci' index='6' model='pcie-root-port'>
  173.       <model name='pcie-root-port'/>
  174.       <target chassis='6' port='0x13'/>
  175.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  176.     </controller>
  177.     <controller type='pci' index='7' model='pcie-root-port'>
  178.       <model name='pcie-root-port'/>
  179.       <target chassis='7' port='0x8'/>
  180.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  181.     </controller>
  182.     <controller type='pci' index='8' model='pcie-root-port'>
  183.       <model name='pcie-root-port'/>
  184.       <target chassis='8' port='0x9'/>
  185.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  186.     </controller>
  187.     <controller type='scsi' index='0' model='virtio-scsi'>
  188.       <driver queues='8' iothread='1'/>
  189.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x2'/>
  190.     </controller>
  191.     <controller type='sata' index='0'>
  192.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  193.     </controller>
  194.     <controller type='usb' index='0' model='nec-xhci' ports='6'>
  195.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  196.     </controller>
  197.     <interface type='bridge'>
  198.       <mac address='52:54:00:46:db:27'/>
  199.       <source bridge='br0'/>
  200.       <model type='virtio'/>
  201.       <driver queues='8'/>
  202.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  203.     </interface>
  204.     <input type='mouse' bus='ps2'/>
  205.     <input type='keyboard' bus='ps2'/>
  206.     <tpm model='tpm-tis'>
  207.       <backend type='emulator' version='2.0'/>
  208.     </tpm>
  209.     <audio id='1' type='none'/>
  210.     <hostdev mode='subsystem' type='pci' managed='yes'>
  211.       <driver name='vfio'/>
  212.       <source>
  213.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x0'/>
  214.       </source>
  215.       <rom file='/usr/share/ovmf/rx7900xt.rom'/>
  216.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' multifunction='on'/>
  217.     </hostdev>
  218.     <hostdev mode='subsystem' type='pci' managed='yes'>
  219.       <driver name='vfio'/>
  220.       <source>
  221.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x1'/>
  222.       </source>
  223.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
  224.     </hostdev>
  225.     <hostdev mode='subsystem' type='pci' managed='yes'>
  226.       <driver name='vfio'/>
  227.       <source>
  228.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x2'/>
  229.       </source>
  230.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x2'/>
  231.     </hostdev>
  232.     <hostdev mode='subsystem' type='pci' managed='yes'>
  233.       <driver name='vfio'/>
  234.       <source>
  235.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x3'/>
  236.       </source>
  237.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x3'/>
  238.     </hostdev>
  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="-fw_cfg"/>
  260. <qemu:arg value="opt/ovmf/X-PciMmio64Mb,string=65536"/>
  261. </qemu:commandline>
  262. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement