]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Deny hugepages for non-existent NUMA nodes
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 May 2018 10:54:46 +0000 (12:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 23 May 2018 07:00:20 +0000 (09:00 +0200)
commitfa6bdf6afa878b8d7c5ed71664ee72be8967cdc5
treee4d4a003293e02f2c1134bb6afd7231fa51023bc
parent74e7c790666ef13bfaf7b8691583f93cb02b1aad
qemu: Deny hugepages for non-existent NUMA nodes

https://bugzilla.redhat.com/show_bug.cgi?id=1534418

Just like ec982f6d929f3c23 denies hugepages for non-existent
guest NUMA nodes in case there are some nodes configured.
Unfortunately, when there are none, qemuBuildNumaArgStr() is not
called and thus we have to have check in qemuBuildMemPathStr()
too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/hugepages-pages8.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c