libvirt/tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full.data
Peter Krempa ccac446545 qemu: domain: Use vcpu 'node-id' property and pass it back to qemu
vcpu properties gathered from query-hotpluggable cpus need to be passed
back to qemu. As qemu did not use the node-id property until now and
libvirt forgot to pass it back properly (it was parsed but not passed
around) we did not honor this.

This patch adds node-id to the structures where it was missing and
passes it around as necessary.

The test data was generated with a VM with following config:
    <numa>
      <cell id='0' cpus='0,2,4,6' memory='512000' unit='KiB'/>
      <cell id='1' cpus='1,3,5,7' memory='512000' unit='KiB'/>
    </numa>

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1452053
2017-07-10 13:23:04 +02:00

49 lines
1.4 KiB
Plaintext

[vcpu libvirt-id='0']
online=yes
hotpluggable=no
thread-id='2033724'
enable-id='1'
query-cpus-id='0'
type='Broadwell-x86_64-cpu'
qom_path='/machine/unattached/device[0]'
topology: socket='0' core='0' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='1']
online=yes
hotpluggable=no
thread-id='2033725'
enable-id='2'
query-cpus-id='1'
type='Broadwell-x86_64-cpu'
qom_path='/machine/unattached/device[2]'
topology: socket='0' core='0' thread='1' node='1' vcpus='1'
[vcpu libvirt-id='2']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='0' core='1' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='3']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='0' core='1' thread='1' node='1' vcpus='1'
[vcpu libvirt-id='4']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='0' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='5']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='0' thread='1' node='1' vcpus='1'
[vcpu libvirt-id='6']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='1' thread='0' node='0' vcpus='1'
[vcpu libvirt-id='7']
online=no
hotpluggable=yes
type='Broadwell-x86_64-cpu'
topology: socket='1' core='1' thread='1' node='1' vcpus='1'