]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_command: do not use host-nodes for system memory
authorPavel Hrdina <phrdina@redhat.com>
Tue, 9 Nov 2021 14:00:53 +0000 (15:00 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 10 Nov 2021 10:17:44 +0000 (11:17 +0100)
commitd73265af6ec41104c20633b5c0a23688a62105e6
treecee6858a3ed618f8bce86ab5f21c67fe703e71ab
parent3f8f52265f79d673e143be0e1dc34d10dec841ee
qemu_command: do not use host-nodes for system memory

Commit 88957116c9d3cb4705380c3702c9d4315fb500bb switched to use
memory-backend-* for regular VM memory as well. That change indirectly
started using 'host-nodes' for system memory which results in QEMU
calling mbind() to bind the system memory to specific NUMA node if the
VM XML contains the configuration similar to this:

  ...
  <numatune>
    <memory mode='strict' nodeset='0'/>
  </numatune>
  ...

Once the VM was started with that configuration it was no longer
possible to change the memory NUMA nodeset.

Fixes: 677c90cc1d1fcb3aba09b5d4f0f8f83099911775
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/numatune-system-memory.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/numatune-system-memory.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c