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

Submitted by Alon Levy on July 12, 2011, 1:55 p.m.

Details

Message ID 1310478932-25370-16-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

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

Patch hide | download patch | download mbox

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;