render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
3e5111
From 1ed2c3a16d7a4eaffafa07edf66a5148230726bf Mon Sep 17 00:00:00 2001
3e5111
Message-Id: <1ed2c3a16d7a4eaffafa07edf66a5148230726bf@dist-git>
3e5111
From: Martin Kletzander <mkletzan@redhat.com>
3e5111
Date: Wed, 21 Jun 2017 09:46:25 +0200
3e5111
Subject: [PATCH] qemu: Change coalesce settings on hotplug when they are
3e5111
 different
3e5111
3e5111
Part of the condition was reverted so no value update was propagated
3e5111
through.
3e5111
3e5111
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1414627
3e5111
3e5111
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
3e5111
(cherry picked from commit ff7bae6e4fb74a52239d53af3672900c69801508)
3e5111
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
3e5111
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3e5111
---
3e5111
 src/qemu/qemu_hotplug.c | 4 ++--
3e5111
 1 file changed, 2 insertions(+), 2 deletions(-)
3e5111
3e5111
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
3e5111
index fbc9177669..a6274273dd 100644
3e5111
--- a/src/qemu/qemu_hotplug.c
3e5111
+++ b/src/qemu/qemu_hotplug.c
3e5111
@@ -3296,8 +3296,8 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,
3e5111
 
3e5111
     if (!!olddev->coalesce != !!newdev->coalesce ||
3e5111
         (olddev->coalesce && newdev->coalesce &&
3e5111
-         !memcmp(olddev->coalesce, newdev->coalesce,
3e5111
-                 sizeof(*olddev->coalesce))))
3e5111
+         memcmp(olddev->coalesce, newdev->coalesce,
3e5111
+                sizeof(*olddev->coalesce))))
3e5111
         needCoalesceChange = true;
3e5111
 
3e5111
     /* FINALLY - actually perform the required actions */
3e5111
-- 
3e5111
2.13.1
3e5111