Threadripper CPU Pinning XML error

Would someone be willing to sanity check my libvirt xml file? Trying to do some cpu tuning but it wont let me save this config. error: internal error: CPU IDs in <numa> exceed the <vcpu> count
To my eyes everything here looks correct. There are 16 vcpus and 16 numa CPU ids.

https://pastebin.com/mDHvfJu7

What CPU are you running? Looks like a 2990wx.

Share your topology? (lstopo [output file].png) so I can have a better idea of what I’m working with.

1 Like

Yep!

Here ya go. Thanks for taking a look at it!

1 Like

Ah! I got it thanks to Aiber over at the vfio discord server. For anyone who wants a similar setup to me (single numa node passthrough on node 2 with pinned memory) here’s the relevant parts of my config.

<vcpu placement='static' cpuset='0-15'>16</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='8'/>
    <vcpupin vcpu='1' cpuset='40'/>
    <vcpupin vcpu='2' cpuset='9'/>
    <vcpupin vcpu='3' cpuset='41'/>
    <vcpupin vcpu='4' cpuset='10'/>
    <vcpupin vcpu='5' cpuset='42'/>
    <vcpupin vcpu='6' cpuset='11'/>
    <vcpupin vcpu='7' cpuset='43'/>
    <vcpupin vcpu='8' cpuset='12'/>
    <vcpupin vcpu='9' cpuset='44'/>
    <vcpupin vcpu='10' cpuset='13'/>
    <vcpupin vcpu='11' cpuset='45'/>
    <vcpupin vcpu='12' cpuset='14'/>
    <vcpupin vcpu='13' cpuset='46'/>
    <vcpupin vcpu='14' cpuset='15'/>
    <vcpupin vcpu='15' cpuset='47'/>
    <emulatorpin cpuset='8-15,40-47'/>
  </cputune>
  <numatune>
    <memory mode='strict' nodeset='2'/>
  </numatune>
  <os>
    <type arch='x86_64' machine='pc-q35-3.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/ovmf/x64/OVMF_CODE.fd</loader>
    <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='ab1234567890'/>
    </hyperv>
    <kvm>
      <hidden state='on'/>
    </kvm>
    <vmport state='off'/>
  </features>
  <cpu mode='host-passthrough' check='partial'>
    <topology sockets='1' cores='8' threads='2'/>
  </cpu>
1 Like

Glad to see you got it working!

1 Like