Patchwork [PATCHv3] qxl-render: qxl_render_update: nop if \!ssd.running

login
register
mail settings
Submitter Alon Levy
Date July 12, 2011, 1:55 p.m.
Message ID <1310478932-25370-16-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/104377/
State New
Headers show

Comments

Alon Levy - July 12, 2011, 1:55 p.m.
---
 hw/qxl-render.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/qxl-render.c b/hw/qxl-render.c
index d70373d..f440fe8 100644
--- a/hw/qxl-render.c
+++ b/hw/qxl-render.c
@@ -106,6 +106,10 @@  void qxl_render_update(PCIQXLDevice *qxl)
     QXLRect dirty[32], update;
     void *ptr;
 
+    if (!qxl->ssd.running) {
+        return;
+    }
+
     if (qxl->guest_primary.resized) {
         qxl->guest_primary.resized = 0;