All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Xen Virtual Framebuffer
@ 2005-12-05 23:00 Anthony Liguori
  2005-12-06  0:17 ` Anthony Liguori
                   ` (5 more replies)
  0 siblings, 6 replies; 40+ messages in thread
From: Anthony Liguori @ 2005-12-05 23:00 UTC (permalink / raw)
  To: xen-devel

Now that's 3.0.0's out, I thought it would be a good time to bring up 
the topic of framebuffer virtualization.

I threw together a proof-of-concept over the weekend of a simple virtual 
framebuffer/keyboard/mouse.  The basic design is have a vmalloc()'d 
buffer in the guest exposed as /dev/fb0 and mmap()'d in dom0.  There's 
also a simple message system for keyboard/mouse events.

The first frontend is a GTK widget with python bindings (so it can 
easily be embedded in a larger management app) and a small python app.  
Right now, the VT system seems to work fine and X starts quite happily 
(using the fbdev driver).  Clicking in the app captures the 
mouse/keyboard and ctrl+alt will release the capture.

There's a readme and an hg bundle in the tarball below that explains how 
to set things up.

Some interesting topics in this area are acceleration, whether we should 
implement our own X driver (or just enhance the fbdev driver since it 
uses no acceleration right now), and how to properly expose it over 
something like VNC.

As always, feedback is greatly appreciated.

http://www.cs.utexas.edu/users/aliguori/xen-vfb-20051205.tar.gz

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 40+ messages in thread
* RE: [RFC] Xen Virtual Framebuffer
@ 2005-12-06  0:48 James Harper
  2005-12-06  0:53 ` M.A. Williamson
  2005-12-06  1:15 ` Jon Smirl
  0 siblings, 2 replies; 40+ messages in thread
From: James Harper @ 2005-12-06  0:48 UTC (permalink / raw)
  To: Jon Smirl, Anthony Liguori; +Cc: xen-devel

Some things just work better when you can enable shared memory
extensions under X, which obviously can't be done over the network.

Also, X isn't the only thing that can make use of a framebuffer.

James

> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-
> bounces@lists.xensource.com] On Behalf Of Jon Smirl
> Sent: Tuesday, 6 December 2005 11:36
> To: Anthony Liguori
> Cc: xen-devel
> Subject: Re: [Xen-devel] [RFC] Xen Virtual Framebuffer
> 
> I haven't tried playing with X and Xen, but why doesn't it work to
> just treat the multiple domains like a network? You run X in dom0 and
> give it full access to the video hardware. Then you ssh into each
> domain and start X apps, just like you do when using X remotely.
> OpenGL will even work this way and be accelerated (as soon as X fixes
> indirect acceleration). This model should let you get apps up from
> each domain simultaneously on the X display in dom0.
> 
> --
> Jon Smirl
> jonsmirl@gmail.com
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 40+ messages in thread
* RE: [RFC] Xen Virtual Framebuffer
@ 2005-12-06 10:59 Petersson, Mats
  0 siblings, 0 replies; 40+ messages in thread
From: Petersson, Mats @ 2005-12-06 10:59 UTC (permalink / raw)
  To: Gerd Knorr, Anthony Liguori; +Cc: xen-devel

> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com 
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Gerd Knorr
> Sent: 06 December 2005 10:51
> To: Anthony Liguori
> Cc: xen-devel
> Subject: Re: [Xen-devel] [RFC] Xen Virtual Framebuffer
> 
> > I threw together a proof-of-concept over the weekend of a simple 
> > virtual framebuffer/keyboard/mouse.  The basic design is have a 
> > vmalloc()'d buffer in the guest exposed as /dev/fb0 and mmap()'d in 
> > dom0.  There's also a simple message system for 
> keyboard/mouse events.
> 
> Cool.
> 
> > Some interesting topics in this area are acceleration, whether we 
> > should implement our own X driver (or just enhance the fbdev driver 
> > since it uses no acceleration right now), and how to 
> properly expose 
> > it over something like VNC.
> 
> Hmm, I don't think acceleration is that important here.  2D 
> acceleration likely disappeares in graphics hardware soon.  
> I'd say a simple, stupid framebuffer for installs is 
> perfectly fine, for accelerated graphics its probably more 
> useful to skip 2D altogether and look at OpenGL 
> virtualization instead.

Actually, since I worked 2 years at a graphics chip manufacturer, doing
2D driver work, I would say that the "pure" 2D accelleration may well be
gone, but a lot of accelleration can still be had from using the 3D
engine to do 2D work... 

But then again, most 2D work is pretty quick even if you do it by pretty
simple means (memcpy-type operations), so yes, doing OpenGL/3D
accelleration would probably be more meaningfull. 

--
Mats
> 
> just my 2 cent,
> 
>    Gerd
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 

^ permalink raw reply	[flat|nested] 40+ messages in thread
* Re: [RFC] Xen Virtual Framebuffer
@ 2005-12-06 20:41 John Byrne
  2005-12-06 20:52 ` Anthony Liguori
  0 siblings, 1 reply; 40+ messages in thread
From: John Byrne @ 2005-12-06 20:41 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: xen-devel

> Now that's 3.0.0's out, I thought it would be a good time to bring up 
> the topic of framebuffer virtualization.
> 
> I threw together a proof-of-concept over the weekend of a simple virtual 
> framebuffer/keyboard/mouse.  The basic design is have a vmalloc()'d 
> buffer in the guest exposed as /dev/fb0 and mmap()'d in dom0.  There's 
> also a simple message system for keyboard/mouse events.
> 
> The first frontend is a GTK widget with python bindings (so it can 
> easily be embedded in a larger management app) and a small python app.  
> Right now, the VT system seems to work fine and X starts quite happily 
> (using the fbdev driver).  Clicking in the app captures the 
> mouse/keyboard and ctrl+alt will release the capture.
> 
> There's a readme and an hg bundle in the tarball below that explains how 
> to set things up.
> 
> Some interesting topics in this area are acceleration, whether we should 
> implement our own X driver (or just enhance the fbdev driver since it 
> uses no acceleration right now), and how to properly expose it over 
> something like VNC.
> 
> As always, feedback is greatly appreciated.
> 
> http://www.cs.utexas.edu/users/aliguori/xen-vfb-20051205.tar.gz
> 
> Regards,
> 
> Anthony Liguori
> 

Anthony,

Looking at Xen from the perspective of managing a farm of machines, what 
I want is a single method for remotely accessing the console/graphics 
for a guest domain, regardless of whether the domain is PV/VT. (A method 
of connect a VNC client to dom0 port 5900 + domid would be just fine. 
[From the code, this seems to be way qemu does it for VNC.]) The current 
model of "xm console" and Xvnc for PV domains is annoying. Unless, I am 
misunderstanding what you are doing, once you add the VNC support, your 
work provides what I want.

So, what are the prospects of getting it finished and in, in the near 
future? Is there any chance of getting it into the 3.0.x code base?

Thanks,

John Byrne

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2005-12-19 15:01 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 23:00 [RFC] Xen Virtual Framebuffer Anthony Liguori
2005-12-06  0:17 ` Anthony Liguori
2005-12-06  0:35   ` Jon Smirl
2005-12-06  1:09     ` Anthony Liguori
2005-12-06  1:19       ` Jon Smirl
2005-12-06  1:25         ` Anthony Liguori
2005-12-06  1:31           ` Jon Smirl
2005-12-06  2:13             ` Anthony Liguori
2005-12-06  2:35           ` Jon Smirl
2005-12-06  2:55             ` Anthony Liguori
2005-12-06  3:13               ` Jon Smirl
2005-12-06  4:45                 ` 答复: [Xen-devel] " 苗枫
2005-12-06  5:08                   ` Anthony Liguori
2005-12-09 21:54     ` Tracy R Reed
2005-12-11  2:27       ` Jon Smirl
2005-12-16 12:14         ` Jacob Gorm Hansen
2005-12-16 15:48           ` Jon Smirl
2005-12-19 10:32             ` Jacob Gorm Hansen
2005-12-19 15:01               ` Jon Smirl
2005-12-06  0:50 ` M.A. Williamson
2005-12-06  1:19   ` Anthony Liguori
2005-12-06 10:50 ` Gerd Knorr
2005-12-06 11:06 ` Jacob Gorm Hansen
2005-12-06 14:54   ` Jon Smirl
2005-12-11  2:38 ` Jon Smirl
2005-12-16 11:20 ` Gerd Knorr
2005-12-16 16:16   ` Jon Smirl
2005-12-16 17:01     ` Gerd Knorr
2005-12-16 17:28       ` Anthony Liguori
2005-12-16 17:23   ` Anthony Liguori
2005-12-19 10:57     ` Gerd Knorr
  -- strict thread matches above, loose matches on Subject: below --
2005-12-06  0:48 James Harper
2005-12-06  0:53 ` M.A. Williamson
2005-12-06  1:13   ` Jon Smirl
2005-12-06  2:51     ` M.A. Williamson
2005-12-06  1:15 ` Jon Smirl
2005-12-06 14:18   ` Charles Duffy
2005-12-06 10:59 Petersson, Mats
2005-12-06 20:41 John Byrne
2005-12-06 20:52 ` Anthony Liguori

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.