Guest User

Win10 gaming VM with 12 physical core pinning

a guest
Jun 29th, 2021
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.84 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2.   <name>win10-gaming</name>
  3.   <uuid></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">33554432</memory>
  10.   <currentMemory unit="KiB">33554432</currentMemory>
  11.   <memoryBacking>
  12.     <hugepages>
  13.       <page size="1048576" unit="KiB"/>
  14.     </hugepages>
  15.     <nosharepages/>
  16.     <locked/>
  17.     <source type="memfd"/>
  18.     <access mode="private"/>
  19.     <allocation mode="immediate"/>
  20.     <discard/>
  21.   </memoryBacking>
  22.   <vcpu placement="static" current="12">48</vcpu>
  23.   <vcpus>
  24.     <vcpu id="0" enabled="yes" hotpluggable="no" order="1"/>
  25.     <vcpu id="1" enabled="yes" hotpluggable="yes" order="2"/>
  26.     <vcpu id="2" enabled="yes" hotpluggable="yes" order="3"/>
  27.     <vcpu id="3" enabled="no" hotpluggable="yes"/>
  28.     <vcpu id="4" enabled="no" hotpluggable="yes"/>
  29.     <vcpu id="5" enabled="no" hotpluggable="yes"/>
  30.     <vcpu id="6" enabled="no" hotpluggable="yes"/>
  31.     <vcpu id="7" enabled="no" hotpluggable="yes"/>
  32.     <vcpu id="8" enabled="yes" hotpluggable="yes" order="4"/>
  33.     <vcpu id="9" enabled="yes" hotpluggable="yes" order="5"/>
  34.     <vcpu id="10" enabled="yes" hotpluggable="yes" order="6"/>
  35.     <vcpu id="11" enabled="no" hotpluggable="yes"/>
  36.     <vcpu id="12" enabled="no" hotpluggable="yes"/>
  37.     <vcpu id="13" enabled="no" hotpluggable="yes"/>
  38.     <vcpu id="14" enabled="no" hotpluggable="yes"/>
  39.     <vcpu id="15" enabled="no" hotpluggable="yes"/>
  40.     <vcpu id="16" enabled="yes" hotpluggable="yes" order="7"/>
  41.     <vcpu id="17" enabled="yes" hotpluggable="yes" order="8"/>
  42.     <vcpu id="18" enabled="yes" hotpluggable="yes" order="9"/>
  43.     <vcpu id="19" enabled="no" hotpluggable="yes"/>
  44.     <vcpu id="20" enabled="no" hotpluggable="yes"/>
  45.     <vcpu id="21" enabled="no" hotpluggable="yes"/>
  46.     <vcpu id="22" enabled="no" hotpluggable="yes"/>
  47.     <vcpu id="23" enabled="no" hotpluggable="yes"/>
  48.     <vcpu id="24" enabled="yes" hotpluggable="yes" order="10"/>
  49.     <vcpu id="25" enabled="yes" hotpluggable="yes" order="11"/>
  50.     <vcpu id="26" enabled="yes" hotpluggable="yes" order="12"/>
  51.     <vcpu id="27" enabled="no" hotpluggable="yes"/>
  52.     <vcpu id="28" enabled="no" hotpluggable="yes"/>
  53.     <vcpu id="29" enabled="no" hotpluggable="yes"/>
  54.     <vcpu id="30" enabled="no" hotpluggable="yes"/>
  55.     <vcpu id="31" enabled="no" hotpluggable="yes"/>
  56.   </vcpus>
  57.   <iothreads>1</iothreads>
  58.   <cputune>
  59.     <vcpupin vcpu="0" cpuset="12"/>
  60.     <vcpupin vcpu="1" cpuset="13"/>
  61.     <vcpupin vcpu="2" cpuset="14"/>
  62.     <vcpupin vcpu="8" cpuset="15"/>
  63.     <vcpupin vcpu="9" cpuset="16"/>
  64.     <vcpupin vcpu="10" cpuset="17"/>
  65.     <vcpupin vcpu="16" cpuset="18"/>
  66.     <vcpupin vcpu="17" cpuset="19"/>
  67.     <vcpupin vcpu="18" cpuset="20"/>
  68.     <vcpupin vcpu="24" cpuset="21"/>
  69.     <vcpupin vcpu="25" cpuset="22"/>
  70.     <vcpupin vcpu="26" cpuset="23"/>
  71.     <emulatorpin cpuset="12-13"/>
  72.     <iothreadpin iothread="1" cpuset="24-35"/>
  73.   </cputune>
  74.   <resource>
  75.     <partition>/machine</partition>
  76.   </resource>
  77.   <os>
  78.     <type arch="x86_64" machine="pc-q35-6.0">hvm</type>
  79.     <loader readonly="yes" secure="yes" type="pflash">/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd</loader>
  80.     <nvram>/var/lib/libvirt/qemu/nvram/win10-gaming_VARS.fd</nvram>
  81.     <boot dev="hd"/>
  82.     <smbios mode="host"/>
  83.   </os>
  84.   <features>
  85.     <acpi/>
  86.     <apic eoi="on"/>
  87.     <hap state="on"/>
  88.     <hyperv>
  89.       <relaxed state="on"/>
  90.       <vapic state="off"/>
  91.       <spinlocks state="on" retries="8191"/>
  92.       <vpindex state="on"/>
  93.       <runtime state="on"/>
  94.       <synic state="on"/>
  95.       <stimer state="on">
  96.         <direct state="on"/>
  97.       </stimer>
  98.       <reset state="off"/>
  99.       <frequencies state="on"/>
  100.       <reenlightenment state="on"/>
  101.       <tlbflush state="on"/>
  102.       <ipi state="off"/>
  103.       <evmcs state="off"/>
  104.     </hyperv>
  105.     <kvm>
  106.       <hint-dedicated state="on"/>
  107.       <poll-control state="on"/>
  108.     </kvm>
  109.     <vmport state="off"/>
  110.     <smm state="on"/>
  111.     <ioapic driver="kvm"/>
  112.   </features>
  113.   <cpu mode="host-passthrough" check="full" migratable="off">
  114.     <topology sockets="1" dies="1" cores="24" threads="2"/>
  115.     <cache mode="passthrough"/>
  116.     <feature policy="disable" name="svm"/>
  117.     <feature policy="disable" name="x2apic"/>
  118.     <feature policy="disable" name="amd-stibp"/>
  119.     <feature policy="require" name="amd-ssbd"/>
  120.     <feature policy="require" name="ibpb"/>
  121.     <feature policy="require" name="wbnoinvd"/>
  122.     <feature policy="require" name="clwb"/>
  123.     <feature policy="require" name="xsaves"/>
  124.     <feature policy="require" name="rdpid"/>
  125.     <feature policy="require" name="umip"/>
  126.     <feature policy="require" name="xsaveerptr"/>
  127.     <feature policy="require" name="clzero"/>
  128.     <feature policy="require" name="invtsc"/>
  129.     <feature policy="require" name="topoext"/>
  130.   </cpu>
  131.   <clock offset="localtime">
  132.     <timer name="rtc" present="yes" tickpolicy="catchup"/>
  133.     <timer name="pit" present="yes" tickpolicy="discard"/>
  134.     <timer name="hpet" present="no" tickpolicy="discard"/>
  135.     <timer name="hypervclock" present="yes"/>
  136.     <timer name="tsc" present="yes" tickpolicy="discard" mode="native"/>
  137.   </clock>
  138.   <on_poweroff>destroy</on_poweroff>
  139.   <on_reboot>restart</on_reboot>
  140.   <on_crash>destroy</on_crash>
  141.   <pm>
  142.     <suspend-to-mem enabled="no"/>
  143.     <suspend-to-disk enabled="no"/>
  144.   </pm>
  145.   <devices>
  146.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  147.     <disk type="block" device="disk">
  148.       <driver name="qemu" type="raw" cache="writeback" io="io_uring" discard="unmap" detect_zeroes="unmap"/>
  149.       <source dev="/dev/zvol/win10-vm/win10-gaming"/>
  150.       <backingStore/>
  151.       <target dev="sda" bus="scsi" rotation_rate="1"/>
  152.       <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  153.     </disk>
  154.     <controller type="usb" index="0" model="none"/>
  155.     <controller type="pci" index="0" model="pcie-root"/>
  156.     <controller type="pci" index="1" model="pcie-root-port">
  157.       <model name="pcie-root-port"/>
  158.       <target chassis="1" port="0x1"/>
  159.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  160.     </controller>
  161.     <controller type="pci" index="2" model="pcie-root-port">
  162.       <model name="pcie-root-port"/>
  163.       <target chassis="2" port="0x3"/>
  164.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
  165.     </controller>
  166.     <controller type="pci" index="3" model="pcie-root-port">
  167.       <model name="pcie-root-port"/>
  168.       <target chassis="3" port="0x4"/>
  169.       <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0" multifunction="on"/>
  170.     </controller>
  171.     <controller type="pci" index="4" model="pcie-root-port">
  172.       <model name="pcie-root-port"/>
  173.       <target chassis="4" port="0x5"/>
  174.       <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0" multifunction="on"/>
  175.     </controller>
  176.     <controller type="pci" index="5" model="pcie-root-port">
  177.       <model name="pcie-root-port"/>
  178.       <target chassis="5" port="0x6"/>
  179.       <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0" multifunction="on"/>
  180.     </controller>
  181.     <controller type="pci" index="6" model="pcie-root-port">
  182.       <model name="pcie-root-port"/>
  183.       <target chassis="6" port="0x9"/>
  184.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  185.     </controller>
  186.     <controller type="pci" index="7" model="pcie-root-port">
  187.       <model name="pcie-root-port"/>
  188.       <target chassis="7" port="0xa"/>
  189.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  190.     </controller>
  191.     <controller type="pci" index="8" model="pcie-root-port">
  192.       <model name="pcie-root-port"/>
  193.       <target chassis="8" port="0xb"/>
  194.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  195.     </controller>
  196.     <controller type="pci" index="9" model="pcie-root-port">
  197.       <model name="pcie-root-port"/>
  198.       <target chassis="9" port="0x2"/>
  199.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  200.     </controller>
  201.     <controller type="pci" index="10" model="pcie-root-port">
  202.       <model name="pcie-root-port"/>
  203.       <target chassis="10" port="0xc"/>
  204.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x4"/>
  205.     </controller>
  206.     <controller type="pci" index="11" model="pcie-root-port">
  207.       <model name="pcie-root-port"/>
  208.       <target chassis="11" port="0xd"/>
  209.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x5"/>
  210.     </controller>
  211.     <controller type="pci" index="12" model="pcie-root-port">
  212.       <model name="pcie-root-port"/>
  213.       <target chassis="12" port="0xe"/>
  214.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x6"/>
  215.     </controller>
  216.     <controller type="pci" index="13" model="pcie-root-port">
  217.       <model name="pcie-root-port"/>
  218.       <target chassis="13" port="0xf"/>
  219.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x7"/>
  220.     </controller>
  221.     <controller type="pci" index="14" model="pcie-root-port">
  222.       <model name="pcie-root-port"/>
  223.       <target chassis="14" port="0x11"/>
  224.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  225.     </controller>
  226.     <controller type="pci" index="15" model="pcie-root-port">
  227.       <model name="pcie-root-port"/>
  228.       <target chassis="15" port="0x12"/>
  229.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  230.     </controller>
  231.     <controller type="pci" index="16" model="pcie-root-port">
  232.       <model name="pcie-root-port"/>
  233.       <target chassis="16" port="0x13"/>
  234.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  235.     </controller>
  236.     <controller type="pci" index="17" model="pcie-root-port">
  237.       <model name="pcie-root-port"/>
  238.       <target chassis="17" port="0x14"/>
  239.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  240.     </controller>
  241.     <controller type="pci" index="18" model="pcie-to-pci-bridge">
  242.       <model name="pcie-pci-bridge"/>
  243.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  244.     </controller>
  245.     <controller type="virtio-serial" index="0">
  246.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  247.     </controller>
  248.     <controller type="scsi" index="0" model="virtio-scsi">
  249.       <driver queues="12" ioeventfd="on" iothread="1" ats="on" packed="on"/>
  250.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  251.     </controller>
  252.     <controller type="sata" index="0">
  253.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  254.     </controller>
  255.     <interface type="network">
  256.       <mac address="{redacted}"/>
  257.       <source network="guest-to-host"/>
  258.       <model type="virtio-non-transitional"/>
  259.       <driver name="vhost" txmode="iothread" ioeventfd="on" queues="12" ats="on" packed="on"/>
  260.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  261.     </interface>
  262.     <input type="mouse" bus="ps2"/>
  263.     <input type="keyboard" bus="ps2"/>
  264.     <tpm model="tpm-crb">
  265.       <backend type="emulator" version="2.0" persistent_state="yes">
  266.         <encryption secret="see https://www.libvirt.org/formatsecret.html"/>
  267.       </backend>
  268.     </tpm>
  269.     <audio id="1" type="none"/>
  270.     <hostdev mode="subsystem" type="pci" managed="yes">
  271.       <driver name="vfio"/>
  272.       <source>
  273.         <address domain="0x0000" bus="0x23" slot="0x00" function="0x0"/>
  274.       </source>
  275.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0" multifunction="on"/>
  276.     </hostdev>
  277.     <hostdev mode="subsystem" type="pci" managed="yes">
  278.       <driver name="vfio"/>
  279.       <source>
  280.         <address domain="0x0000" bus="0x23" slot="0x00" function="0x1"/>
  281.       </source>
  282.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x1"/>
  283.     </hostdev>
  284.     <hostdev mode="subsystem" type="pci" managed="yes">
  285.       <driver name="vfio"/>
  286.       <source>
  287.         <address domain="0x0000" bus="0x25" slot="0x00" function="0x3"/>
  288.       </source>
  289.       <address type="pci" domain="0x0000" bus="0x10" slot="0x00" function="0x0"/>
  290.     </hostdev>
  291.     <hostdev mode="subsystem" type="pci" managed="yes">
  292.       <driver name="vfio"/>
  293.       <source>
  294.         <address domain="0x0000" bus="0x05" slot="0x00" function="0x3"/>
  295.       </source>
  296.       <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  297.     </hostdev>
  298.     <hostdev mode="subsystem" type="pci" managed="yes">
  299.       <source>
  300.         <address domain="0x0000" bus="0x45" slot="0x00" function="0x0"/>
  301.       </source>
  302.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  303.     </hostdev>
  304.     <hostdev mode="subsystem" type="pci" managed="yes">
  305.       <source>
  306.         <address domain="0x0000" bus="0x4a" slot="0x00" function="0x1"/>
  307.       </source>
  308.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  309.     </hostdev>
  310.     <hostdev mode="subsystem" type="pci" managed="yes">
  311.       <source>
  312.         <address domain="0x0000" bus="0x25" slot="0x00" function="0x4"/>
  313.       </source>
  314.       <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  315.     </hostdev>
  316.     <memballoon model="none"/>
  317.   </devices>
  318.   <qemu:commandline>
  319.     <qemu:arg value="-overcommit"/>
  320.     <qemu:arg value="cpu-pm=on"/>
  321.     <qemu:arg value="-set"/>
  322.     <qemu:arg value="device.scsi0-0-0-0.product=Sabrent Rocket 4 Plus 500GB"/>
  323.     <qemu:arg value="-set"/>
  324.     <qemu:arg value="device.scsi0-0-0-0.discard_granularity=65536"/>
  325.   </qemu:commandline>
  326. </domain>
  327.  
Advertisement
Add Comment
Please, Sign In to add comment