Advertisement
mmcze

windows11-ryzen5800x-libvirt-xml-6-AVIC+HV

Aug 26th, 2022
1,730
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 firmware='efi'>
  36.     <type arch='x86_64' machine='pc-q35-7.0'>hvm</type>
  37.     <loader/>
  38.     <bootmenu enable='no'/>
  39.     <smbios mode='host'/>
  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.     </hyperv>
  62.     <kvm>
  63.       <hidden state='on'/>
  64.       <hint-dedicated state='on'/>
  65.       <poll-control state='on'/>
  66.     </kvm>
  67.     <pmu state='off'/>
  68.     <vmport state='off'/>
  69.     <ioapic driver='kvm'/>
  70.   </features>
  71.   <cpu mode='host-passthrough' check='full' migratable='off'>
  72.     <topology sockets='1' dies='1' cores='7' threads='2'/>
  73.     <cache mode='passthrough'/>
  74.     <feature policy='disable' name='x2apic'/>
  75.     <feature policy='require' name='tsc-deadline'/>
  76.     <feature policy='require' name='tsc_adjust'/>
  77.     <feature policy='require' name='arch-capabilities'/>
  78.     <feature policy='require' name='rdctl-no'/>
  79.     <feature policy='require' name='skip-l1dfl-vmentry'/>
  80.     <feature policy='require' name='mds-no'/>
  81.     <feature policy='require' name='pschange-mc-no'/>
  82.     <feature policy='require' name='topoext'/>
  83.     <feature policy='disable' name='svm'/>
  84.     <feature policy='require' name='hypervisor'/>
  85.     <feature policy='require' name='invtsc'/>
  86.     <feature policy='require' name='ibpb'/>
  87.     <feature policy='require' name='virt-ssbd'/>
  88.     <feature policy='require' name='pdpe1gb'/>
  89.     <feature policy='require' name='cmp_legacy'/>
  90.     <feature policy='require' name='xsaves'/>
  91.     <feature policy='require' name='perfctr_core'/>
  92.     <feature policy='require' name='clzero'/>
  93.     <feature policy='require' name='xsaveerptr'/>
  94.   </cpu>
  95.   <clock offset='timezone' timezone='Europe/Prague'>
  96.     <timer name='rtc' present='no' tickpolicy='catchup'/>
  97.     <timer name='pit' tickpolicy='discard'/>
  98.     <timer name='hpet' present='no'/>
  99.     <timer name='kvmclock' present='no'/>
  100.     <timer name='hypervclock' present='yes'/>
  101.     <timer name='tsc' present='yes' mode='native'/>
  102.   </clock>
  103.   <on_poweroff>destroy</on_poweroff>
  104.   <on_reboot>destroy</on_reboot>
  105.   <on_crash>destroy</on_crash>
  106.   <pm>
  107.     <suspend-to-mem enabled='no'/>
  108.     <suspend-to-disk enabled='no'/>
  109.   </pm>
  110.   <devices>
  111.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  112.     <disk type='file' device='disk'>
  113.       <driver name='qemu' type='raw' cache='none' io='threads' discard='unmap'/>
  114.       <source file='/crypt/win2-storage/disk.raw'/>
  115.       <backingStore/>
  116.       <target dev='vda' bus='scsi'/>
  117.       <boot order='1'/>
  118.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  119.     </disk>
  120.     <disk type='file' device='disk'>
  121.       <driver name='qemu' type='raw' cache='none' io='threads' discard='unmap'/>
  122.       <source file='/zrcadlo2/win2-storage2/disk.raw'/>
  123.       <backingStore/>
  124.       <target dev='vdb' bus='scsi'/>
  125.       <address type='drive' controller='0' bus='0' target='1' unit='0'/>
  126.     </disk>
  127.     <disk type='file' device='disk'>
  128.       <driver name='qemu' type='raw' cache='none' io='threads' discard='unmap'/>
  129.       <source file='/stripovanej/win2-storage3/disk.raw'/>
  130.       <backingStore/>
  131.       <target dev='vdc' bus='scsi'/>
  132.       <address type='drive' controller='0' bus='0' target='2' unit='0'/>
  133.     </disk>
  134.     <disk type='file' device='disk'>
  135.       <driver name='qemu' type='raw' cache='none' io='threads' discard='unmap'/>
  136.       <source file='/ssdpool/win2-storage4/disk.raw'/>
  137.       <backingStore/>
  138.       <target dev='vdd' bus='scsi'/>
  139.       <address type='drive' controller='0' bus='0' target='3' unit='0'/>
  140.     </disk>
  141.     <controller type='pci' index='0' model='pcie-root'/>
  142.     <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  143.       <model name='i82801b11-bridge'/>
  144.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0' multifunction='on'/>
  145.     </controller>
  146.     <controller type='pci' index='2' model='pci-bridge'>
  147.       <model name='pci-bridge'/>
  148.       <target chassisNr='2'/>
  149.       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  150.     </controller>
  151.     <controller type='pci' index='3' model='pcie-root-port'>
  152.       <model name='pcie-root-port'/>
  153.       <target chassis='3' port='0x10'/>
  154.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  155.     </controller>
  156.     <controller type='pci' index='4' model='pcie-root-port'>
  157.       <model name='pcie-root-port'/>
  158.       <target chassis='4' port='0x11'/>
  159.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  160.     </controller>
  161.     <controller type='pci' index='5' model='pcie-root-port'>
  162.       <model name='pcie-root-port'/>
  163.       <target chassis='5' port='0x12'/>
  164.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  165.     </controller>
  166.     <controller type='pci' index='6' model='pcie-root-port'>
  167.       <model name='pcie-root-port'/>
  168.       <target chassis='6' port='0x13'/>
  169.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  170.     </controller>
  171.     <controller type='pci' index='7' model='pcie-root-port'>
  172.       <model name='pcie-root-port'/>
  173.       <target chassis='7' port='0x8'/>
  174.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  175.     </controller>
  176.     <controller type='pci' index='8' model='pcie-root-port'>
  177.       <model name='pcie-root-port'/>
  178.       <target chassis='8' port='0x9'/>
  179.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  180.     </controller>
  181.     <controller type='scsi' index='0' model='virtio-scsi'>
  182.       <driver queues='8' iothread='1'/>
  183.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x2'/>
  184.     </controller>
  185.     <controller type='sata' index='0'>
  186.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  187.     </controller>
  188.     <controller type='usb' index='0' model='nec-xhci' ports='6'>
  189.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  190.     </controller>
  191.     <interface type='bridge'>
  192.       <mac address='52:54:00:46:db:27'/>
  193.       <source bridge='br0'/>
  194.       <model type='virtio'/>
  195.       <driver queues='8'/>
  196.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  197.     </interface>
  198.     <input type='mouse' bus='ps2'/>
  199.     <input type='keyboard' bus='ps2'/>
  200.     <tpm model='tpm-tis'>
  201.       <backend type='emulator' version='2.0'/>
  202.     </tpm>
  203.     <audio id='1' type='none'/>
  204.     <hostdev mode='subsystem' type='pci' managed='yes'>
  205.       <driver name='vfio'/>
  206.       <source>
  207.         <address domain='0x0000' bus='0x27' slot='0x00' function='0x0'/>
  208.       </source>
  209.       <rom file='/usr/share/ovmf/Sapphire.RX580.8192.170323.rom'/>
  210.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' multifunction='on'/>
  211.     </hostdev>
  212.     <hostdev mode='subsystem' type='pci' managed='yes'>
  213.       <driver name='vfio'/>
  214.       <source>
  215.         <address domain='0x0000' bus='0x27' slot='0x00' function='0x1'/>
  216.       </source>
  217.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
  218.     </hostdev>
  219.     <hostdev mode='subsystem' type='usb' managed='yes'>
  220.       <source>
  221.         <vendor id='0x0458'/>
  222.         <product id='0x6007'/>
  223.         <address bus='3' device='2'/>
  224.       </source>
  225.       <address type='usb' bus='0' port='3'/>
  226.     </hostdev>
  227.     <hostdev mode='subsystem' type='pci' managed='yes'>
  228.       <driver name='vfio'/>
  229.       <source>
  230.         <address domain='0x0000' bus='0x29' slot='0x00' function='0x3'/>
  231.       </source>
  232.       <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  233.     </hostdev>
  234.     <memballoon model='none'/>
  235.   </devices>
  236.   <seclabel type='dynamic' model='dac' relabel='yes'/>
  237.   <qemu:commandline>
  238. <qemu:arg value="-cpu"/>
  239. <qemu:arg value="host,migratable=off,x2apic=off,tsc-deadline=on,tsc-adjust=on,arch-capabilities=on,rdctl-no=on,skip-l1dfl-vmentry=on,mds-no=on,pschange-mc-no=on,topoext=on,svm=off,hypervisor=on,invtsc=on,ibpb=on,virt-ssbd=on,pdpe1gb=on,cmp-legacy=on,xsaves=on,perfctr-core=on,clzero=on,xsaveerptr=on,kvmclock=off,hv-time=on,kvm-pv-eoi=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,hv-vpindex=on,hv-runtime=on,hv-synic=on,hv-stimer=on,hv-stimer-direct=on,hv-reset=on,hv-vendor-id=1234567890ab,hv-frequencies=on,hv-reenlightenment=on,hv-tlbflush=on,hv-ipi=on,kvm=off,kvm-hint-dedicated=on,kvm-poll-control=on,pmu=off,host-cache-info=on,l3-cache=off,hv-avic=on"/>
  240.     <qemu:arg value='-smbios'/>
  241.     <qemu:arg value='type=3,manufacturer=MSI,version=1000'/>
  242.     <qemu:arg value='-smbios'/>
  243.     <qemu:arg value='type=4,manufacturer=AMD,version=1000'/>
  244.     <qemu:arg value='-smbios'/>
  245.     <qemu:arg value='type=17,manufacturer=Micron'/>
  246.   </qemu:commandline>
  247. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement