Advertisement
yv-fr

VFIO-SETUP

Feb 27th, 2022
1,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.26 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2. <name>win11BGHOST2</name>
  3. <uuid>3e8d79aa-a2c5-4468-8165-8b262e80d8e0</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">9437184</memory>
  10. <currentMemory unit="KiB">9437184</currentMemory>
  11. <vcpu placement="static" current="18">24</vcpu>
  12. <vcpus>
  13. <vcpu id="0" enabled="yes" hotpluggable="no"/>
  14. <vcpu id="1" enabled="yes" hotpluggable="yes"/>
  15. <vcpu id="2" enabled="yes" hotpluggable="yes"/>
  16. <vcpu id="3" enabled="yes" hotpluggable="yes"/>
  17. <vcpu id="4" enabled="yes" hotpluggable="yes"/>
  18. <vcpu id="5" enabled="yes" hotpluggable="yes"/>
  19. <vcpu id="6" enabled="no" hotpluggable="yes"/>
  20. <vcpu id="7" enabled="no" hotpluggable="yes"/>
  21. <vcpu id="8" enabled="yes" hotpluggable="yes"/>
  22. <vcpu id="9" enabled="yes" hotpluggable="yes"/>
  23. <vcpu id="10" enabled="yes" hotpluggable="yes"/>
  24. <vcpu id="11" enabled="yes" hotpluggable="yes"/>
  25. <vcpu id="12" enabled="yes" hotpluggable="yes"/>
  26. <vcpu id="13" enabled="yes" hotpluggable="yes"/>
  27. <vcpu id="14" enabled="no" hotpluggable="yes"/>
  28. <vcpu id="15" enabled="no" hotpluggable="yes"/>
  29. <vcpu id="16" enabled="yes" hotpluggable="yes"/>
  30. <vcpu id="17" enabled="yes" hotpluggable="yes"/>
  31. <vcpu id="18" enabled="yes" hotpluggable="yes"/>
  32. <vcpu id="19" enabled="yes" hotpluggable="yes"/>
  33. <vcpu id="20" enabled="yes" hotpluggable="yes"/>
  34. <vcpu id="21" enabled="yes" hotpluggable="yes"/>
  35. <vcpu id="22" enabled="no" hotpluggable="yes"/>
  36. <vcpu id="23" enabled="no" hotpluggable="yes"/>
  37. </vcpus>
  38. <iothreads>2</iothreads>
  39. <cputune>
  40. <vcpupin vcpu="0" cpuset="6"/>
  41. <vcpupin vcpu="1" cpuset="18"/>
  42. <vcpupin vcpu="2" cpuset="7"/>
  43. <vcpupin vcpu="3" cpuset="19"/>
  44. <vcpupin vcpu="4" cpuset="8"/>
  45. <vcpupin vcpu="5" cpuset="20"/>
  46. <vcpupin vcpu="6" cpuset="0"/>
  47. <vcpupin vcpu="7" cpuset="12"/>
  48. <vcpupin vcpu="8" cpuset="9"/>
  49. <vcpupin vcpu="9" cpuset="21"/>
  50. <vcpupin vcpu="10" cpuset="10"/>
  51. <vcpupin vcpu="11" cpuset="22"/>
  52. <vcpupin vcpu="12" cpuset="11"/>
  53. <vcpupin vcpu="13" cpuset="23"/>
  54. <vcpupin vcpu="14" cpuset="1"/>
  55. <vcpupin vcpu="15" cpuset="13"/>
  56. <vcpupin vcpu="16" cpuset="3"/>
  57. <vcpupin vcpu="17" cpuset="15"/>
  58. <vcpupin vcpu="18" cpuset="4"/>
  59. <vcpupin vcpu="19" cpuset="16"/>
  60. <vcpupin vcpu="20" cpuset="5"/>
  61. <vcpupin vcpu="21" cpuset="17"/>
  62. <vcpupin vcpu="22" cpuset="2"/>
  63. <vcpupin vcpu="23" cpuset="14"/>
  64. <emulatorpin cpuset="0,12"/>
  65. <iothreadpin iothread="1" cpuset="1,13"/>
  66. <iothreadpin iothread="2" cpuset="2,14"/>
  67. </cputune>
  68. <sysinfo type="smbios">
  69. <bios>
  70. <entry name="vendor">*</entry>
  71. </bios>
  72. <system>
  73. <entry name="manufacturer">Microsoft</entry>
  74. <entry name="product">Windows</entry>
  75. <entry name="version">11</entry>
  76. </system>
  77. <baseBoard>
  78. <entry name="manufacturer">*</entry>
  79. <entry name="product">*</entry>
  80. <entry name="version">*</entry>
  81. <entry name="serial">*</entry>
  82. </baseBoard>
  83. </sysinfo>
  84. <os>
  85. <type arch="x86_64" machine="pc-q35-6.1">hvm</type>
  86. <loader readonly="yes" secure="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd</loader>
  87. <nvram>/var/lib/libvirt/qemu/nvram/WIN11_VARS.fd</nvram>
  88. <smbios mode="host"/>
  89. </os>
  90. <features>
  91. <acpi/>
  92. <apic/>
  93. <hyperv mode="custom">
  94. <relaxed state="on"/>
  95. <vapic state="on"/>
  96. <spinlocks state="on" retries="8192"/>
  97. <vpindex state="on"/>
  98. <synic state="on"/>
  99. <stimer state="on"/>
  100. <reset state="on"/>
  101. <vendor_id state="on" value="0123756792CD"/>
  102. <frequencies state="on"/>
  103. <reenlightenment state="on"/>
  104. <tlbflush state="off"/>
  105. </hyperv>
  106. <kvm>
  107. <hidden state="on"/>
  108. <hint-dedicated state="off"/>
  109. </kvm>
  110. <vmport state="off"/>
  111. <smm state="on"/>
  112. </features>
  113. <cpu mode="host-passthrough" check="full" migratable="on">
  114. <topology sockets="1" dies="1" cores="12" threads="2"/>
  115. <cache mode="passthrough"/>
  116. <feature policy="require" name="invtsc"/>
  117. <feature policy="require" name="topoext"/>
  118. <feature policy="disable" name="hypervisor"/>
  119. <feature policy="disable" name="amd-stibp"/>
  120. <feature policy="disable" name="x2apic"/>
  121. </cpu>
  122. <clock offset="localtime">
  123. <timer name="rtc" tickpolicy="catchup"/>
  124. <timer name="pit" tickpolicy="delay"/>
  125. <timer name="hpet" present="no"/>
  126. <timer name="hypervclock" present="yes"/>
  127. </clock>
  128. <on_poweroff>destroy</on_poweroff>
  129. <on_reboot>restart</on_reboot>
  130. <on_crash>destroy</on_crash>
  131. <pm>
  132. <suspend-to-mem enabled="no"/>
  133. <suspend-to-disk enabled="no"/>
  134. </pm>
  135. <devices>
  136. <emulator>/usr/bin/qemu-system-x86_64RED</emulator>
  137. <disk type="file" device="disk">
  138. <driver name="qemu" type="qcow2" iothread="1"/>
  139. <source file="/var/lib/libvirt/images/win11BGHOST2.qcow2"/>
  140. <target dev="vda" bus="virtio"/>
  141. <boot order="2"/>
  142. <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  143. </disk>
  144. <disk type="block" device="disk">
  145. <driver name="qemu" type="raw" cache="none" io="native"/>
  146. <source dev="/dev/disk/by-id/ata-ST3500418AS_9VMD3CE6"/>
  147. <target dev="vdb" bus="virtio"/>
  148. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  149. </disk>
  150. <disk type="block" device="disk">
  151. <driver name="qemu" type="raw" cache="none" io="native"/>
  152. <source dev="/dev/disk/by-id/ata-TOSHIBA_HDWD130_979TJZ8AS"/>
  153. <target dev="vdc" bus="virtio"/>
  154. <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  155. </disk>
  156. <disk type="block" device="disk">
  157. <driver name="qemu" type="raw" cache="none" io="native"/>
  158. <source dev="/dev/disk/by-id/ata-Hitachi_HTS725050A9A364_100220PCK400VLGU9XEJ"/>
  159. <target dev="vdd" bus="virtio"/>
  160. <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  161. </disk>
  162. <disk type="file" device="cdrom">
  163. <driver name="qemu" type="raw"/>
  164. <source file="/mnt/yfsave/Linux/Home/Downloads/virtio-win-0.1.208.iso"/>
  165. <target dev="sdc" bus="sata"/>
  166. <readonly/>
  167. <boot order="3"/>
  168. <address type="drive" controller="0" bus="0" target="0" unit="2"/>
  169. </disk>
  170. <controller type="usb" index="0" model="qemu-xhci" ports="15">
  171. <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  172. </controller>
  173. <controller type="sata" index="0">
  174. <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  175. </controller>
  176. <controller type="pci" index="0" model="pcie-root"/>
  177. <controller type="pci" index="1" model="pcie-root-port">
  178. <model name="pcie-root-port"/>
  179. <target chassis="1" port="0x10"/>
  180. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  181. </controller>
  182. <controller type="pci" index="2" model="pcie-root-port">
  183. <model name="pcie-root-port"/>
  184. <target chassis="2" port="0x11"/>
  185. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  186. </controller>
  187. <controller type="pci" index="3" model="pcie-root-port">
  188. <model name="pcie-root-port"/>
  189. <target chassis="3" port="0x12"/>
  190. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  191. </controller>
  192. <controller type="pci" index="4" model="pcie-root-port">
  193. <model name="pcie-root-port"/>
  194. <target chassis="4" port="0x13"/>
  195. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  196. </controller>
  197. <controller type="pci" index="5" model="pcie-root-port">
  198. <model name="pcie-root-port"/>
  199. <target chassis="5" port="0x14"/>
  200. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  201. </controller>
  202. <controller type="pci" index="6" model="pcie-root-port">
  203. <model name="pcie-root-port"/>
  204. <target chassis="6" port="0x15"/>
  205. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  206. </controller>
  207. <controller type="pci" index="7" model="pcie-root-port">
  208. <model name="pcie-root-port"/>
  209. <target chassis="7" port="0x8"/>
  210. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  211. </controller>
  212. <controller type="pci" index="8" model="pcie-root-port">
  213. <model name="pcie-root-port"/>
  214. <target chassis="8" port="0x9"/>
  215. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  216. </controller>
  217. <controller type="pci" index="9" model="pcie-root-port">
  218. <model name="pcie-root-port"/>
  219. <target chassis="9" port="0xa"/>
  220. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  221. </controller>
  222. <controller type="pci" index="10" model="pcie-root-port">
  223. <model name="pcie-root-port"/>
  224. <target chassis="10" port="0xb"/>
  225. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  226. </controller>
  227. <controller type="pci" index="11" model="pcie-root-port">
  228. <model name="pcie-root-port"/>
  229. <target chassis="11" port="0xc"/>
  230. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x4"/>
  231. </controller>
  232. <controller type="pci" index="12" model="pcie-root-port">
  233. <model name="pcie-root-port"/>
  234. <target chassis="12" port="0xd"/>
  235. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x5"/>
  236. </controller>
  237. <controller type="pci" index="13" model="pcie-root-port">
  238. <model name="pcie-root-port"/>
  239. <target chassis="13" port="0xe"/>
  240. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x6"/>
  241. </controller>
  242. <controller type="pci" index="14" model="pcie-root-port">
  243. <model name="pcie-root-port"/>
  244. <target chassis="14" port="0xf"/>
  245. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x7"/>
  246. </controller>
  247. <controller type="pci" index="15" model="pcie-to-pci-bridge">
  248. <model name="pcie-pci-bridge"/>
  249. <address type="pci" domain="0x0000" bus="0x0e" slot="0x00" function="0x0"/>
  250. </controller>
  251. <controller type="pci" index="16" model="pcie-root-port">
  252. <model name="pcie-root-port"/>
  253. <target chassis="16" port="0x16"/>
  254. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  255. </controller>
  256. <controller type="virtio-serial" index="0">
  257. <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  258. </controller>
  259. <interface type="direct">
  260. <mac address="52:54:00:b6:77:de"/>
  261. <source dev="enp7s0" mode="bridge"/>
  262. <model type="rtl8139"/>
  263. <address type="pci" domain="0x0000" bus="0x0f" slot="0x03" function="0x0"/>
  264. </interface>
  265. <serial type="pty">
  266. <target type="isa-serial" port="0">
  267. <model name="isa-serial"/>
  268. </target>
  269. </serial>
  270. <console type="pty">
  271. <target type="serial" port="0"/>
  272. </console>
  273. <channel type="spicevmc">
  274. <target type="virtio" name="com.redhat.spice.0"/>
  275. <address type="virtio-serial" controller="0" bus="0" port="1"/>
  276. </channel>
  277. <input type="mouse" bus="ps2"/>
  278. <input type="keyboard" bus="ps2"/>
  279. <audio id="1" type="spice"/>
  280. <hostdev mode="subsystem" type="pci" managed="yes">
  281. <source>
  282. <address domain="0x0000" bus="0x0e" slot="0x00" function="0x0"/>
  283. </source>
  284. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  285. </hostdev>
  286. <hostdev mode="subsystem" type="usb" managed="yes">
  287. <source>
  288. <vendor id="0x2109"/>
  289. <product id="0x2811"/>
  290. </source>
  291. <address type="usb" bus="0" port="4"/>
  292. </hostdev>
  293. <hostdev mode="subsystem" type="pci" managed="yes">
  294. <source>
  295. <address domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  296. </source>
  297. <address type="pci" domain="0x0000" bus="0x0a" slot="0x00" function="0x0"/>
  298. </hostdev>
  299. <hostdev mode="subsystem" type="pci" managed="yes">
  300. <source>
  301. <address domain="0x0000" bus="0x09" slot="0x00" function="0x3"/>
  302. </source>
  303. <address type="pci" domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
  304. </hostdev>
  305. <hostdev mode="subsystem" type="pci" managed="yes">
  306. <source>
  307. <address domain="0x0000" bus="0x09" slot="0x00" function="0x1"/>
  308. </source>
  309. <address type="pci" domain="0x0000" bus="0x0c" slot="0x00" function="0x0"/>
  310. </hostdev>
  311. <hostdev mode="subsystem" type="pci" managed="yes">
  312. <source>
  313. <address domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  314. </source>
  315. <address type="pci" domain="0x0000" bus="0x0d" slot="0x00" function="0x0"/>
  316. </hostdev>
  317. <hostdev mode="subsystem" type="pci" managed="yes">
  318. <source>
  319. <address domain="0x0000" bus="0x00" slot="0x14" function="0x0"/>
  320. </source>
  321. <address type="pci" domain="0x0000" bus="0x0f" slot="0x01" function="0x0"/>
  322. </hostdev>
  323. <hostdev mode="subsystem" type="pci" managed="yes">
  324. <source>
  325. <address domain="0x0000" bus="0x00" slot="0x14" function="0x3"/>
  326. </source>
  327. <address type="pci" domain="0x0000" bus="0x0f" slot="0x02" function="0x0"/>
  328. </hostdev>
  329. <hostdev mode="subsystem" type="usb" managed="yes">
  330. <source>
  331. <vendor id="0x2109"/>
  332. <product id="0x8110"/>
  333. </source>
  334. <address type="usb" bus="0" port="5"/>
  335. </hostdev>
  336. <hostdev mode="subsystem" type="pci" managed="yes">
  337. <source>
  338. <address domain="0x0000" bus="0x0e" slot="0x00" function="0x1"/>
  339. </source>
  340. <address type="pci" domain="0x0000" bus="0x10" slot="0x00" function="0x0"/>
  341. </hostdev>
  342. <memballoon model="virtio">
  343. <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  344. </memballoon>
  345. </devices>
  346. <qemu:commandline>
  347. <qemu:arg value="-smbios"/>
  348. <qemu:arg value="type=0,vendor=Amercian Megatrends Inc.,date=06/23/2021,version=P4.40,uefi=on"/>
  349. <qemu:arg value="-smbios"/>
  350. <qemu:arg value="type=2,manufacturer=ASRock,product=X570 Taichi"/>
  351. <qemu:arg value="-smbios"/>
  352. <qemu:arg value="type=4,manufacturer=AMD,version=3900"/>
  353. <qemu:arg value="-smbios"/>
  354. <qemu:arg value="type=17,manufacturer=Micron,speed=3200"/>
  355. <qemu:arg value="-object"/>
  356. <qemu:arg value="input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Lexip_Lexip_Gaming-event-mouse"/>
  357. <qemu:arg value="-object"/>
  358. <qemu:arg value="input-linux,id=kbd1,evdev=/dev/input/by-id/usb-ROCCAT_ROCCAT_Vulcan_100_AIMO-event-kbd,grab_all=on,repeat=on"/>
  359. <qemu:arg value="-device"/>
  360. <qemu:arg value="ich9-intel-hda,bus=pcie.0,addr=0x1b"/>
  361. <qemu:arg value="-device"/>
  362. <qemu:arg value="hda-micro,audiodev=hda"/>
  363. <qemu:arg value="-audiodev"/>
  364. <qemu:arg value="pa,id=hda,server=/run/user/1000/pulse/native"/>
  365. </qemu:commandline>
  366. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement