Advertisement
Guest User

libvirt cpu pinning

a guest
Apr 5th, 2020
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.60 KB | None | 0 0
  1. <domain type='kvm' id='15'>
  2.   ...
  3.  
  4.   <vcpu placement='static' cpuset='2-7,18-23'>12</vcpu>
  5.   <cputune>
  6.     <vcpupin vcpu='0' cpuset='2'/>
  7.     <vcpupin vcpu='1' cpuset='18'/>
  8.     <vcpupin vcpu='2' cpuset='3'/>
  9.     <vcpupin vcpu='3' cpuset='19'/>
  10.     <vcpupin vcpu='4' cpuset='4'/>
  11.     <vcpupin vcpu='5' cpuset='20'/>
  12.     <vcpupin vcpu='6' cpuset='5'/>
  13.     <vcpupin vcpu='7' cpuset='21'/>
  14.     <vcpupin vcpu='8' cpuset='6'/>
  15.     <vcpupin vcpu='9' cpuset='22'/>
  16.     <vcpupin vcpu='10' cpuset='7'/>
  17.     <vcpupin vcpu='11' cpuset='23'/>
  18.   </cputune>
  19.  
  20.   ...
  21.  
  22.   <os>
  23.     <type arch='x86_64' machine='pc-q35-2.11'>hvm</type>
  24.     <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
  25.     <nvram>/var/lib/libvirt/qemu/nvram/mswin_VARS.fd</nvram>
  26.   </os>
  27.   <features>
  28.     <acpi/>
  29.     <apic/>
  30.     <hyperv>
  31.       <relaxed state='on'/>
  32.       <vapic state='on'/>
  33.       <spinlocks state='on' retries='8191'/>
  34.       <vendor_id state='on' value='vfiorocksgpu'/>
  35.     </hyperv>
  36.     <kvm>
  37.       <hidden state='on'/>
  38.     </kvm>
  39.     <vmport state='off'/>
  40.   </features>
  41.   <cpu mode='host-passthrough' check='none'>
  42.     <topology sockets='2' cores='6' threads='1'/>
  43.   </cpu>
  44.   <clock offset='localtime'>
  45.     <timer name='rtc' tickpolicy='catchup'/>
  46.     <timer name='pit' tickpolicy='delay'/>
  47.     <timer name='hpet' present='no'/>
  48.     <timer name='hypervclock' present='yes'/>
  49.   </clock>
  50.   <on_poweroff>destroy</on_poweroff>
  51.   <on_reboot>restart</on_reboot>
  52.   <on_crash>destroy</on_crash>
  53.   <pm>
  54.     <suspend-to-mem enabled='no'/>
  55.     <suspend-to-disk enabled='no'/>
  56.   </pm>
  57.  
  58.   ...
  59. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement