From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH] qxl: make sure we don't have a stale ds_mirror hanging around
Date: Thu, 1 Nov 2012 13:24:55 +0100 [thread overview]
Message-ID: <1351772695-30404-1-git-send-email-kraxel@redhat.com> (raw)
ui/spice-display.c uses ds_mirror to figure which screen areas did
actually change. This is active when the qxl card is in vga mode or a
non-qxl gfx card is used. A display resize invalidates ds_mirror, and
it is handled by simply simply freeing ds_mirror. The next screen
update it will be re-allocated as needed.
With qxl there is another possible code path which can invalidate
ds_mirror: leave vga mode and re-enter vga mode. Make sure we free
ds_mirror here too.
https://bugzilla.redhat.com/show_bug.cgi?id=865767
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/qxl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/qxl.c b/hw/qxl.c
index dfb221a..f25c89d 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1070,6 +1070,8 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)
qemu_spice_create_host_primary(&d->ssd);
d->mode = QXL_MODE_VGA;
memset(&d->ssd.dirty, 0, sizeof(d->ssd.dirty));
+ g_free(d->ssd.ds_mirror);
+ d->ssd.ds_mirror = NULL;
vga_dirty_log_start(&d->vga);
}
--
1.7.1
reply other threads:[~2012-11-01 12:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351772695-30404-1-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).