From: Anthony Liguori <anthony@codemonkey.ws>
To: Paul Brook <paul@codesourcery.com>
Cc: Markus Armbruster <armbru@redhat.com>,
Samuel Thibault <samuel.thibault@eu.citrix.com>,
qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [5056] add DisplayState->idle (Samuel Thibault)
Date: Thu, 21 Aug 2008 20:24:11 -0500 [thread overview]
Message-ID: <48AE153B.5070605@codemonkey.ws> (raw)
In-Reply-To: <200808220016.12304.paul@codesourcery.com>
Paul Brook wrote:
> On Thursday 21 August 2008, Anthony Liguori wrote:
>
>> Revision: 5056
>> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5056
>> Author: aliguori
>> Date: 2008-08-21 20:08:55 +0000 (Thu, 21 Aug 2008)
>>
>> Log Message:
>> -----------
>> add DisplayState->idle (Samuel Thibault)
>>
>
> This really needs a comment saying exactly what this field means.
Fair enough. Gerd or Samuel, can you send a patch?
> I'm guessing
> it's set by the GUI routines to tell the emulated device that it doesn't need
> to update the display.
>
Yes, that's what it does AFAIUI.
> Currently the GUI has to poll the emulated device to get updated output, which
> means this flag is the exact opposite of what I'd intuitively expect.
>
The Xen PV frame buffer is a little different than the other devices we
emulate. The Linux driver provides a linear framebuffer to userspace
via the fbdev interface. There is no update interface for fbdev though
so it periodically zaps the page table mappings in order to do dirty
tracking which it then uses to send the host update regions.
Presumably, this idle flag is actually communicated to the guest to let
it know that it does not need to do dirty tracking for the time being.
Presumably, this has an observable performance advantage. I believe the
refresh rate is pretty high within the guest so I can imagine this being
significant when using guests with CONFIG_NO_HZ.
Regards,
Anthony Liguori
> Paul
>
prev parent reply other threads:[~2008-08-22 1:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 20:08 [Qemu-devel] [5056] add DisplayState->idle (Samuel Thibault) Anthony Liguori
2008-08-21 23:16 ` Paul Brook
2008-08-22 1:24 ` Anthony Liguori [this message]
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=48AE153B.5070605@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=armbru@redhat.com \
--cc=kraxel@redhat.com \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
--cc=samuel.thibault@eu.citrix.com \
/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).