]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Relax validation for mem->access if guest has no NUMA
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 14 Dec 2020 11:20:07 +0000 (12:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 14 Dec 2020 13:00:25 +0000 (14:00 +0100)
commitbff2ad5d6b1f25da02802273934d2a519159fec7
tree3836d623d6b7151fed8f13e981a899ddf5b39ef6
parent1100c3b2a03e15c3e189059f72ed76aa5e1139a1
qemu: Relax validation for mem->access if guest has no NUMA

In v6.8.0-27-g88957116c9 and friends I've switched the way the
default RAM is specified for QEMU (from plain -m to
memory-backend-*). This means, that even if a guest doesn't have
any NUMA nodes configured we can use memory-backend-* attributes
to translate user config requests. For instance, we can allow
memory to be shared (<access mode='shared'/> under
<memoryBacking/>). But what my original commits are missing is
allowing such configuration in our validator.

Fixes: 88957116c9d3cb4705380c3702c9d4315fb500bb
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1839034#c12
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/hugepages-memaccess3.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvtest.c