Re: [libvirt] [PATCH 2/3] qemu: move runtime netdev validation into a separate function

2019-09-15 Thread Laine Stump
On 9/13/19 4:02 PM, Michal Prívozník wrote: On 9/13/19 4:52 PM, Laine Stump wrote: +qemuCaps && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_VHOSTUSER_MULTIQUEUE)) { NULL is never passed to qemuCaps, so no need to check it. I had put that in so I could also call it from

Re: [libvirt] [PATCH 2/3] qemu: move runtime netdev validation into a separate function

2019-09-15 Thread Laine Stump
On 9/13/19 4:02 PM, Michal Prívozník wrote: On 9/13/19 4:52 PM, Laine Stump wrote: --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -5300,6 +5300,86 @@ qemuDomainWatchdogDefValidate(const virDomainWatchdogDef *dev, } + 3 empty lines instead of 2. :-O +int

Re: [libvirt] [PATCH 2/3] qemu: move runtime netdev validation into a separate function

2019-09-13 Thread Michal Prívozník
On 9/13/19 4:52 PM, Laine Stump wrote: > 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

[libvirt] [PATCH 2/3] qemu: move runtime netdev validation into a separate function

2019-09-13 Thread Laine Stump
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.