All of lore.kernel.org
 help / color / mirror / Atom feed
* To use xcs or not?
@ 2005-02-20  8:48 Jacob Gorm Hansen
  2005-02-20 17:04 ` Anthony Liguori
  0 siblings, 1 reply; 7+ messages in thread
From: Jacob Gorm Hansen @ 2005-02-20  8:48 UTC (permalink / raw)
  To: xen-devel

hi,

I am creating a graphics system where each VM draws into an OpenGL 
surface of a process running in dom0. I need to syncronize updates, 
ideally with the vertical blanking of the screen, but in the world of 
stupid PC hardware probably just with some refresh timer that my OpenGL 
process is tied to.

So when the screen has been redrawn, I need to wake up my domUs, and for 
this I wanted to use the ctrl_if mechanism. I borrowed some code from 
vm-shutdown in the (very nice) vm-tools package, setup a semaphore in 
the guest kernel, and for every screen update I send an XCS_REQUEST 
(only type that seems to do anything) up to the domU.

This works fine for a little while (1000 updates or so), whereafter xcs 
seems to go into an infinite loop. I am going to debug this a little, 
but before I dig in too dig I would like to know if this is the right 
solution for my problem. It seems a little worrying (performace wise) 
that all my notifications need to go via another user space process 
before reaching their destination. Would it be better to setup a 
dedicated event channel for this, and would doing so be possible from a 
user space process in dom0 (naturally I can create a special device node 
if I need to)?

Thanks,
Jacob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

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

end of thread, other threads:[~2005-02-21  6:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-20  8:48 To use xcs or not? Jacob Gorm Hansen
2005-02-20 17:04 ` Anthony Liguori
2005-02-21  3:12   ` Jacob Gorm Hansen
2005-02-21  5:04     ` Anthony Liguori
2005-02-21  6:23       ` Jacob Gorm Hansen
2005-02-21  6:31         ` Anthony Liguori
2005-02-21  6:42           ` Jacob Gorm Hansen

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.