From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH for-2.4 0/2] framebuffer: automatically set DIRTY_MEMORY_VGA
Date: Wed, 22 Jul 2015 14:46:29 +0200 [thread overview]
Message-ID: <1437569191-4881-1-git-send-email-pbonzini@redhat.com> (raw)
The pxa2xx_lcd, omap_lcdc, pl110 and milkymist-vgafb devices use
framebuffer.c to render an image from a shared memory framebuffer.
With KVM, DIRTY_MEMORY_VGA always had to be enabled explicitly
on RAM memory regions that can be used for the framebuffer, and
the 2.4 changes to dirty bitmap handling made that mandatory for
TCG as well.
If the board does not set DIRTY_MEMORY_VGA, framebuffer.c detects this
(commit d55d420, framebuffer: check memory_region_is_logging,
2015-03-23) and always invalidates the screen; this is inefficient,
to the point that blocking X11 calls on slow network connections
can prevent the guest from making progress. To fix this, the patch
makes the framebuffer set the flag. Because there could be multiple
framebuffers, patch 1 allows nesting of memory_region_set_log calls.
Paolo
Paolo Bonzini (2):
memory: count number of active VGA logging clients
framebuffer: set DIRTY_MEMORY_VGA on RAM that is used for the
framebuffer
hw/display/framebuffer.c | 75 ++++++++++++++++++++++++--------------------
hw/display/framebuffer.h | 10 ++++--
hw/display/milkymist-vgafb.c | 15 +++++++--
hw/display/omap_lcdc.c | 12 +++++--
hw/display/pl110.c | 13 ++++++--
hw/display/pxa2xx_lcd.c | 29 ++++++++++++-----
include/exec/memory.h | 1 +
memory.c | 7 +++++
8 files changed, 111 insertions(+), 51 deletions(-)
--
2.4.3
next reply other threads:[~2015-07-22 12:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 12:46 Paolo Bonzini [this message]
2015-07-22 12:46 ` [Qemu-devel] [PATCH for-2.4 1/2] memory: count number of active VGA logging clients Paolo Bonzini
2015-07-23 9:45 ` Peter Maydell
2015-07-22 12:46 ` [Qemu-devel] [PATCH for-2.4 2/2] framebuffer: set DIRTY_MEMORY_VGA on RAM that is used for the framebuffer Paolo Bonzini
2015-07-23 10:22 ` Peter Maydell
2015-07-23 10:28 ` Paolo Bonzini
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=1437569191-4881-1-git-send-email-pbonzini@redhat.com \
--to=pbonzini@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).