Guest User

win10 vfio xml

a guest
Sep 4th, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.51 KB | None | 0 0
  1. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  2. <name>win10</name>
  3. <uuid>b6319bc0-3b54-472f-939a-a1f5fec31fdd</uuid>
  4. <metadata>
  5. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6. <libosinfo:os id="http://microsoft.com/win/10"/>
  7. </libosinfo:libosinfo>
  8. </metadata>
  9. <memory unit='KiB'>12582912</memory>
  10. <currentMemory unit='KiB'>12582912</currentMemory>
  11. <vcpu placement='static' current='14'>16</vcpu>
  12. <iothreads>1</iothreads>
  13. <cputune>
  14. <vcpupin vcpu='0' cpuset='0'/>
  15. <vcpupin vcpu='1' cpuset='8'/>
  16. <vcpupin vcpu='2' cpuset='1'/>
  17. <vcpupin vcpu='3' cpuset='9'/>
  18. <vcpupin vcpu='4' cpuset='2'/>
  19. <vcpupin vcpu='5' cpuset='10'/>
  20. <vcpupin vcpu='6' cpuset='3'/>
  21. <vcpupin vcpu='7' cpuset='11'/>
  22. <vcpupin vcpu='8' cpuset='4'/>
  23. <vcpupin vcpu='9' cpuset='12'/>
  24. <vcpupin vcpu='10' cpuset='5'/>
  25. <vcpupin vcpu='11' cpuset='13'/>
  26. <vcpupin vcpu='12' cpuset='6'/>
  27. <vcpupin vcpu='13' cpuset='14'/>
  28. <emulatorpin cpuset='7,15'/>
  29. <iothreadpin iothread='1' cpuset='7,15'/>
  30. </cputune>
  31. <os firmware='efi'>
  32. <type arch='x86_64' machine='pc-q35-9.1'>hvm</type>
  33. <firmware>
  34. <feature enabled='yes' name='enrolled-keys'/>
  35. <feature enabled='yes' name='secure-boot'/>
  36. </firmware>
  37. <loader readonly='yes' secure='yes' type='pflash' format='qcow2'>/usr/share/edk2/ovmf/OVMF_CODE_4M.secboot.qcow2</loader>
  38. <nvram template='/usr/share/edk2/ovmf/OVMF_VARS_4M.secboot.qcow2' templateFormat='qcow2' format='qcow2'>/var/lib/libvirt/qemu/nvram/win10_VARS.qcow2</nvram>
  39. <boot dev='hd'/>
  40. <bootmenu enable='no'/>
  41. <smbios mode='host'/>
  42. </os>
  43. <features>
  44. <acpi/>
  45. <apic/>
  46. <hap state='on'/>
  47. <hyperv mode='custom'>
  48. <relaxed state='on'/>
  49. <vapic state='on'/>
  50. <spinlocks state='on' retries='8191'/>
  51. <vpindex state='on'/>
  52. <runtime state='on'/>
  53. <synic state='on'/>
  54. <stimer state='on'/>
  55. <reset state='on'/>
  56. <vendor_id state='on' value='AuthenticAMD'/>
  57. <frequencies state='on'/>
  58. </hyperv>
  59. <vmport state='off'/>
  60. <smm state='on'/>
  61. <ioapic driver='kvm'/>
  62. </features>
  63. <cpu mode='host-passthrough' check='none' migratable='on'>
  64. <topology sockets='1' dies='1' clusters='1' cores='8' threads='2'/>
  65. <cache mode='passthrough'/>
  66. <feature policy='require' name='topoext'/>
  67. <feature policy='require' name='invtsc'/>
  68. <feature policy='disable' name='hypervisor'/>
  69. <feature policy='disable' name='svm'/>
  70. <feature policy='disable' name='x2apic'/>
  71. </cpu>
  72. <clock offset='localtime'>
  73. <timer name='rtc' tickpolicy='delay'/>
  74. <timer name='pit' present='no' tickpolicy='discard'/>
  75. <timer name='hpet' present='yes'/>
  76. <timer name='hypervclock' present='yes'/>
  77. <timer name='tsc' present='yes' mode='native'/>
  78. </clock>
  79. <on_poweroff>destroy</on_poweroff>
  80. <on_reboot>restart</on_reboot>
  81. <on_crash>destroy</on_crash>
  82. <pm>
  83. <suspend-to-mem enabled='no'/>
  84. <suspend-to-disk enabled='no'/>
  85. </pm>
  86. <devices>
  87. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  88. <disk type='block' device='disk'>
  89. <driver name='qemu' type='raw' cache='none' io='threads' discard='unmap'/>
  90. <source dev='/dev/sdb'/>
  91. <target dev='sda' bus='sata'/>
  92. <serial>TPBF2306120030509777</serial>
  93. <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  94. </disk>
  95. <controller type='usb' index='0' model='qemu-xhci' ports='15'>
  96. <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  97. </controller>
  98. <controller type='pci' index='0' model='pcie-root'/>
  99. <controller type='pci' index='1' model='pcie-root-port'>
  100. <model name='pcie-root-port'/>
  101. <target chassis='1' port='0x10'/>
  102. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  103. </controller>
  104. <controller type='pci' index='2' model='pcie-root-port'>
  105. <model name='pcie-root-port'/>
  106. <target chassis='2' port='0x11'/>
  107. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  108. </controller>
  109. <controller type='pci' index='3' model='pcie-root-port'>
  110. <model name='pcie-root-port'/>
  111. <target chassis='3' port='0x12'/>
  112. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  113. </controller>
  114. <controller type='pci' index='4' model='pcie-root-port'>
  115. <model name='pcie-root-port'/>
  116. <target chassis='4' port='0x13'/>
  117. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  118. </controller>
  119. <controller type='pci' index='5' model='pcie-root-port'>
  120. <model name='pcie-root-port'/>
  121. <target chassis='5' port='0x14'/>
  122. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
  123. </controller>
  124. <controller type='pci' index='6' model='pcie-root-port'>
  125. <model name='pcie-root-port'/>
  126. <target chassis='6' port='0x15'/>
  127. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
  128. </controller>
  129. <controller type='pci' index='7' model='pcie-root-port'>
  130. <model name='pcie-root-port'/>
  131. <target chassis='7' port='0x16'/>
  132. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
  133. </controller>
  134. <controller type='pci' index='8' model='pcie-root-port'>
  135. <model name='pcie-root-port'/>
  136. <target chassis='8' port='0x17'/>
  137. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
  138. </controller>
  139. <controller type='pci' index='9' model='pcie-root-port'>
  140. <model name='pcie-root-port'/>
  141. <target chassis='9' port='0x18'/>
  142. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/>
  143. </controller>
  144. <controller type='pci' index='10' model='pcie-root-port'>
  145. <model name='pcie-root-port'/>
  146. <target chassis='10' port='0x19'/>
  147. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/>
  148. </controller>
  149. <controller type='pci' index='11' model='pcie-root-port'>
  150. <model name='pcie-root-port'/>
  151. <target chassis='11' port='0x1a'/>
  152. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/>
  153. </controller>
  154. <controller type='pci' index='12' model='pcie-root-port'>
  155. <model name='pcie-root-port'/>
  156. <target chassis='12' port='0x1b'/>
  157. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3'/>
  158. </controller>
  159. <controller type='pci' index='13' model='pcie-root-port'>
  160. <model name='pcie-root-port'/>
  161. <target chassis='13' port='0x1c'/>
  162. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4'/>
  163. </controller>
  164. <controller type='pci' index='14' model='pcie-root-port'>
  165. <model name='pcie-root-port'/>
  166. <target chassis='14' port='0x1d'/>
  167. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x5'/>
  168. </controller>
  169. <controller type='pci' index='15' model='pcie-root-port'>
  170. <model name='pcie-root-port'/>
  171. <target chassis='15' port='0x1e'/>
  172. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x6'/>
  173. </controller>
  174. <controller type='pci' index='16' model='pcie-to-pci-bridge'>
  175. <model name='pcie-pci-bridge'/>
  176. <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
  177. </controller>
  178. <controller type='sata' index='0'>
  179. <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  180. </controller>
  181. <interface type='network'>
  182. <mac address='52:54:00:03:07:48'/>
  183. <source network='default'/>
  184. <model type='e1000e'/>
  185. <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  186. </interface>
  187. <serial type='pty'>
  188. <target type='isa-serial' port='0'>
  189. <model name='isa-serial'/>
  190. </target>
  191. </serial>
  192. <console type='pty'>
  193. <target type='serial' port='0'/>
  194. </console>
  195. <input type='mouse' bus='ps2'/>
  196. <input type='keyboard' bus='ps2'/>
  197. <tpm model='tpm-tis'>
  198. <backend type='emulator' version='2.0'/>
  199. </tpm>
  200. <audio id='1' type='none'/>
  201. <hostdev mode='subsystem' type='pci' managed='yes'>
  202. <source>
  203. <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
  204. </source>
  205. <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  206. </hostdev>
  207. <hostdev mode='subsystem' type='pci' managed='yes'>
  208. <source>
  209. <address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/>
  210. </source>
  211. <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  212. </hostdev>
  213. <hostdev mode='subsystem' type='pci' managed='yes'>
  214. <source>
  215. <address domain='0x0000' bus='0x0a' slot='0x00' function='0x4'/>
  216. </source>
  217. <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
  218. </hostdev>
  219. <hostdev mode='subsystem' type='usb' managed='yes'>
  220. <source>
  221. <vendor id='0x3434'/>
  222. <product id='0x0510'/>
  223. </source>
  224. <address type='usb' bus='0' port='1'/>
  225. </hostdev>
  226. <hostdev mode='subsystem' type='usb' managed='yes'>
  227. <source>
  228. <vendor id='0x0951'/>
  229. <product id='0x170f'/>
  230. </source>
  231. <address type='usb' bus='0' port='3'/>
  232. </hostdev>
  233. <hostdev mode='subsystem' type='usb' managed='yes'>
  234. <source>
  235. <vendor id='0x2f24'/>
  236. <product id='0x00b7'/>
  237. </source>
  238. <address type='usb' bus='0' port='4'/>
  239. </hostdev>
  240. <hostdev mode='subsystem' type='usb' managed='yes'>
  241. <source>
  242. <vendor id='0x1e7d'/>
  243. <product id='0x2ca6'/>
  244. </source>
  245. <address type='usb' bus='0' port='5'/>
  246. </hostdev>
  247. <hostdev mode='subsystem' type='usb' managed='yes'>
  248. <source>
  249. <vendor id='0x1e7d'/>
  250. <product id='0x2cab'/>
  251. </source>
  252. <address type='usb' bus='0' port='2'/>
  253. </hostdev>
  254. <watchdog model='itco' action='poweroff'/>
  255. <memballoon model='virtio'>
  256. <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  257. </memballoon>
  258. </devices>
  259. <qemu:commandline>
  260. <qemu:arg value='-overcommit'/>
  261. <qemu:arg value='cpu-pm=on'/>
  262. <qemu:arg value='-fw_cfg'/>
  263. <qemu:arg value='opt/ovmf/X-PciMmio64Mb,string=65536'/>
  264. </qemu:commandline>
  265. </domain>
Advertisement
Add Comment
Please, Sign In to add comment