]> xenbits.xensource.com Git - libvirt.git/commit
qemuBuildMemPathStr: Forbid memoryBacking/access for non-numa case
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Dec 2017 13:03:13 +0000 (14:03 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Jan 2018 14:53:00 +0000 (15:53 +0100)
commit6534b3c4bb146d0c2a8412bd032ce5f356af6e4a
treec46eb01ccc3600f17ff699e63eed594161d84bed
parentf10bb3347b43d900ff361cda5fe1996782284991
qemuBuildMemPathStr: Forbid memoryBacking/access for non-numa case

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

If a domain has no numa nodes, that means we don't put any
memory-backend-file onto the qemu command line. That in turn
means we can't set access='shared'. Therefore, we should produce
an error instead of ignoring the setting silently.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/hugepages-memaccess3.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c