yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-ui-avoid-pointless-VNC-updates-if-framebuffer-isn-t-.patch

9ae3a8
From cbfdbd7430e27c24d55b880144d5df05ef949417 Mon Sep 17 00:00:00 2001
9ae3a8
From: "Daniel P. Berrange" <berrange@redhat.com>
9ae3a8
Date: Thu, 8 Feb 2018 17:50:31 +0100
9ae3a8
Subject: [PATCH 17/27] ui: avoid pointless VNC updates if framebuffer isn't
9ae3a8
 dirty
9ae3a8
MIME-Version: 1.0
9ae3a8
Content-Type: text/plain; charset=UTF-8
9ae3a8
Content-Transfer-Encoding: 8bit
9ae3a8
9ae3a8
RH-Author: Daniel P. Berrange <berrange@redhat.com>
9ae3a8
Message-id: <20180208175041.5634-18-berrange@redhat.com>
9ae3a8
Patchwork-id: 78946
9ae3a8
O-Subject: [RHEL-7.5 qemu-kvm PATCH v1 17/27] ui: avoid pointless VNC updates if framebuffer isn't dirty
9ae3a8
Bugzilla: 1527405
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
From: "Daniel P. Berrange" <berrange@redhat.com>
9ae3a8
9ae3a8
The vnc_update_client() method checks the 'has_dirty' flag to see if there are
9ae3a8
dirty regions that are pending to send to the client. Regardless of this flag,
9ae3a8
if a forced update is requested, updates must be sent. For unknown reasons
9ae3a8
though, the code also tries to sent updates if audio capture is enabled. This
9ae3a8
makes no sense as audio capture state does not impact framebuffer contents, so
9ae3a8
this check is removed.
9ae3a8
9ae3a8
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
9ae3a8
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
9ae3a8
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9ae3a8
Message-id: 20171218191228.31018-5-berrange@redhat.com
9ae3a8
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
(cherry picked from commit 3541b08475d51bddf8aded36576a0ff5a547a978)
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 ui/vnc.c | 2 +-
9ae3a8
 1 file changed, 1 insertion(+), 1 deletion(-)
9ae3a8
9ae3a8
diff --git a/ui/vnc.c b/ui/vnc.c
9ae3a8
index aebaa37..eea5702 100644
9ae3a8
--- a/ui/vnc.c
9ae3a8
+++ b/ui/vnc.c
9ae3a8
@@ -869,7 +869,7 @@ static int vnc_update_client(VncState *vs, int has_dirty)
9ae3a8
         return 0;
9ae3a8
     }
9ae3a8
 
9ae3a8
-    if (!vs->has_dirty && !vs->audio_cap && !vs->force_update) {
9ae3a8
+    if (!vs->has_dirty && !vs->force_update) {
9ae3a8
         return 0;
9ae3a8
     }
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8