]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Use vcpu 'node-id' property and pass it back to qemu
authorPeter Krempa <pkrempa@redhat.com>
Tue, 27 Jun 2017 14:04:38 +0000 (16:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 10 Jul 2017 11:23:04 +0000 (13:23 +0200)
commitccac446545c18a4c50fb6cba77a1a1dae94fd339
tree9db5fab0085bd190555ae8ceb700fdbc11e8b433
parent1df47a70fb6aaff71fe137f74e34748fd2c4915b
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
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_process.c
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full-cpus.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full-hotplug.json [new file with mode: 0644]
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full.data [new file with mode: 0644]
tests/qemumonitorjsontest.c