]> xenbits.xensource.com Git - libvirt.git/commit
qemu: move runtime netdev validation into a separate function
authorLaine Stump <laine@redhat.com>
Thu, 12 Sep 2019 22:25:21 +0000 (18:25 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 16 Sep 2019 00:17:55 +0000 (20:17 -0400)
commit3cff23f7f16dc2b74d54f14b77790dc37df01ded
tree27b062d429e24fb5017867e8d85d3d4801c85486
parent57de1988c4c2b015a5f459a5504a814833ffa194
qemu: move runtime netdev validation into a separate function

The same validation should be done for both static network devices and
hotplugged devices, but they are currently inconsistent. Move all the
relevant validation from qemuBuildInterfaceCommandLine() into the new
function qemuDomainValidateActualNetDef() and call the latter from
the former.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h