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