]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Move mem validation into post parse validator
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Nov 2020 08:49:18 +0000 (09:49 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Dec 2020 15:24:19 +0000 (16:24 +0100)
commit2df92ec4e58a5d1986e27ce387fb12193f85df57
tree74bc10eab988440776a78132a51dbe392e22a84f
parent917006cbb9ca1acf8222db5dad62e347220e1991
qemu: Move mem validation into post parse validator

There is this function qemuDomainDefValidateMemoryHotplug() which
is called explicitly from hotplug path and the qemu's domain def
validator. This is not really necessary because we can move the
part that validates feature against qemuCaps into device
validator which is called implicitly (from qemu driver's POV).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Han Han <hhan@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_validate.c