mmcze

windows-ryzen2600-tpm-libvirt-xml

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