[libvirt] [PATCH v1 0/3] small code repetition purge on qemu_conf.c

Daniel Henrique Barboza posted 3 patches 2 weeks ago
Test syntax-check passed
Failed in applying to current master (apply log)
src/qemu/qemu_conf.c | 193 +++++++++++++++++++------------------------
1 file changed, 85 insertions(+), 108 deletions(-)

[libvirt] [PATCH v1 0/3] small code repetition purge on qemu_conf.c

Posted by Daniel Henrique Barboza 2 weeks ago
Stumbled on this while changing qemu_conf.c for other
reasons. Moved code around here and there to avoid
repetition.

Final result is 23 less lines for the same functionality,
which is nothing to write home about but seems okay
to contribute.


Daniel Henrique Barboza (3):
  qemu_conf.c: introduce qemuAddRemoveSharedHostdevInternal
  qemu_conf.c: introduce qemuAddRemoveSharedDiskInternal
  qemu_conf.c: introduce qemuAddRemoveSharedDeviceInternal

 src/qemu/qemu_conf.c | 193 +++++++++++++++++++------------------------
 1 file changed, 85 insertions(+), 108 deletions(-)

-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH v1 0/3] small code repetition purge on qemu_conf.c

Posted by Pavel Hrdina 1 week ago
On Tue, Sep 03, 2019 at 08:06:04PM -0300, Daniel Henrique Barboza wrote:
> Stumbled on this while changing qemu_conf.c for other
> reasons. Moved code around here and there to avoid
> repetition.
> 
> Final result is 23 less lines for the same functionality,
> which is nothing to write home about but seems okay
> to contribute.
> 
> 
> Daniel Henrique Barboza (3):
>   qemu_conf.c: introduce qemuAddRemoveSharedHostdevInternal
>   qemu_conf.c: introduce qemuAddRemoveSharedDiskInternal
>   qemu_conf.c: introduce qemuAddRemoveSharedDeviceInternal
> 
>  src/qemu/qemu_conf.c | 193 +++++++++++++++++++------------------------
>  1 file changed, 85 insertions(+), 108 deletions(-)

Feel free to ignore my comment about the Internal name as it makes sense
with the last patch.  I'll fix the parameter to be on its own line and
push it, thanks.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list