All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: xen-devel@lists.xensource.com
Subject: Re: [PATCH 2/2] Virtual frame buffer: user space	backend
Date: Fri, 07 Jul 2006 18:05:02 -0500	[thread overview]
Message-ID: <pan.2006.07.07.23.05.00.944375@codemonkey.ws> (raw)
In-Reply-To: 3d8eece20607071550i7fcc98d7o634db68ec6d25b9c@mail.gmail.com

On Fri, 07 Jul 2006 23:50:32 +0100, Christian Limpach wrote:

> On 7/7/06, Anthony Liguori <anthony@codemonkey.ws> wrote:
>> Since the best we can do is page granularity (for now), why not just
>> have a bitmap represent the dirty pages?
> 
> Doesn't your virtual framebuffer already support 2d operations?

Nope.  X won't even bother using the interface.  Plus, serializing 2d ops
is quite challenging when dealing with a shared buffer.

> Also, the
> cirrus driver emulation in qemu already supports copyrect.

I know, I added support for it.  It was really painful to get right too
since the vga memory has to be flushed before the copyrect occurs (and the
system has to disallow more writes until the copyrect completes).

It's going to be even more painful in Xen since the cost of that
serialization is going to be greater.

>> Instead of switching bitmaps, why not just have the backend and frontend
>> share a bitmap and do atomic get/sets on it?
> 
> Because we'd like to avoid atomic operations.

Why?  That seems odd to me.

>> I think the key point is to have the bitmap represent linear regions of
>> framebuffer memory instead of logical rectangles within the current
>> resolution.
> 
> Well, I don't agree ;-)  Because we want to transport 2D redraw
> information from the frontend to the backend.

So 2D information is very useful, especially for VNC.  I think for Xen
though, we may need to abandon the shared framebuffer completely and
develop a lightweight framebuffer protocol.

The idea would be to push the dirty'ing analysis to the frontend and have
it communicate data over a higher bandwidth ring queue.  This avoids
having to deal with synchronizing the shared framebuffer for 2d ops.

This is quite a bit different from the code today though.

What do you think about getting rid of the shared framebuffer altogether?

Regards,

Anthony Liguori

>      christian

  reply	other threads:[~2006-07-07 23:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 13:38 [PATCH 0/2] Virtual frame buffer Markus Armbruster
2006-06-26 13:39 ` [PATCH 1/2] Virtual frame buffer: frontend Markus Armbruster
2006-07-07  7:18   ` Markus Armbruster
2006-07-07 16:45   ` Christian Limpach
2006-07-10  7:37     ` Markus Armbruster
2006-07-10 10:57       ` Christian Limpach
2006-07-10 18:29     ` Markus Armbruster
2006-07-26 20:28       ` Christian Limpach
2006-07-27  5:11         ` Markus Armbruster
2006-07-27  7:26           ` Gerd Hoffmann
2006-08-04  8:00           ` Markus Armbruster
2006-08-04  8:34             ` Christian Limpach
2006-07-28 13:52   ` Laurent Vivier
2006-08-04  7:54     ` Markus Armbruster
2006-06-26 13:40 ` [PATCH 2/2] Virtual frame buffer: user space backend Markus Armbruster
2006-07-07  7:18   ` Markus Armbruster
2006-07-28 15:55     ` Laurent Vivier
2006-08-04  7:57       ` Markus Armbruster
2006-07-07 16:57   ` Christian Limpach
2006-07-07 17:31     ` Anthony Liguori
2006-07-07 18:33       ` Christian Limpach
2006-07-07 18:50         ` Anthony Liguori
2006-07-07 22:50           ` Christian Limpach
2006-07-07 23:05             ` Anthony Liguori [this message]
2006-07-08  1:10               ` Christian Limpach
2006-07-08  1:49                 ` Anthony Liguori
2006-07-08 10:20                   ` Christian Limpach
2006-07-08  0:35             ` Rik van Riel
2006-07-08  1:38               ` Christian Limpach
2006-07-10  7:37     ` Markus Armbruster
2006-07-10 18:29     ` Markus Armbruster
2006-07-07  7:17 ` [PATCH 0/2] Virtual frame buffer Markus Armbruster

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=pan.2006.07.07.23.05.00.944375@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.