[libvirt] [PATCH] qemu: Change coalesce settings on hotplug when they are different

Martin Kletzander posted 1 patch 6 years, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/ff7bae6e4fb74a52239d53af3672900c69801508.1498030521.git.mkletzan@redhat.com
src/qemu/qemu_hotplug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [PATCH] qemu: Change coalesce settings on hotplug when they are different
Posted by Martin Kletzander 6 years, 9 months ago
Part of the condition was reverted so no value update was propagated
through.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1414627

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
---

Notes:
    Pushed as trivial

 src/qemu/qemu_hotplug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 5247c065711d..a486fb4fe334 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -3283,8 +3283,8 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,

     if (!!olddev->coalesce != !!newdev->coalesce ||
         (olddev->coalesce && newdev->coalesce &&
-         !memcmp(olddev->coalesce, newdev->coalesce,
-                 sizeof(*olddev->coalesce))))
+         memcmp(olddev->coalesce, newdev->coalesce,
+                sizeof(*olddev->coalesce))))
         needCoalesceChange = true;

     /* FINALLY - actually perform the required actions */
-- 
2.13.1

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