]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Move hypervisor specific nhugepage checks
authorJohn Ferlan <jferlan@redhat.com>
Tue, 11 Sep 2018 12:46:46 +0000 (08:46 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 12 Sep 2018 16:21:05 +0000 (12:21 -0400)
commit61d340a27d781bcb4af0c9e63101e8ad5b5e3588
tree9d9839a3f2b9b681d67bab220fa63f9255dc0b18
parent972acbded1e07c866ae4d3a9d719e58bc5a322a3
conf: Move hypervisor specific nhugepage checks

Commit 82327038 moved a couple of checks out of the XML parser
into the domain validation; however, those checks seem to be more
useful as hypervisor specific checks rather than the more general
domain conf checks (nothing in the docs indicate a specific error).

Fortunately only QEMU was processing the memoryBacking, thus
add the changes to qemuDomainDefValidateMemory and change the
code a bit to make usage of the similar deref to def->mem and
the mem->nhugepages filter.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_domain.c