[Spice-devel] Rings semaphore? (in XF86 QXL driver)

2011-07-28 Thread Yaniv Kaul
Unlike Windows' QXL driver, where there are semaphores for ring and caches: display/qxldd.h: HSEMAPHORE cursor_sem; /* Protects cursor_ring */ HSEMAPHORE surface_sem; /* Protects surfaces allocation */ HSEMAPHORE image_cache_sem; /* Protects image cache */ HSEMAPHORE cursor_cache_sem; /* Protects

Re: [Spice-devel] JPEG error - Application transferred too few scanlines

2011-07-28 Thread Christophe Fergeau
Hey, On Wed, Jul 27, 2011 at 06:11:32PM +0200, Christophe Fergeau wrote: > Yep, I broke that in master, it's caused by the mjpeg changes, the "height" > used when calling mjpeg_encoder_new is 1 byte less than the height which is > then used in the loop around mjpeg_encoder_encode_scanline. I went

Re: [Spice-devel] [PATCH] RFC: client/x11: reuse existing platform_win

2011-07-28 Thread Marc-André Lureau
Hi On Thu, Jul 28, 2011 at 6:43 PM, Alon Levy wrote: > On Thu, Jul 28, 2011 at 06:01:53PM +0200, Marc-André Lureau wrote: >> Each time a {Dynamic,MultyMon}Scren is created, a new platform_win is >> created to receive the notifications from X11. This looks very >> suspicious already. Since I am no

Re: [Spice-devel] [PATCH] RFC: client/x11: reuse existing platform_win

2011-07-28 Thread Alon Levy
On Thu, Jul 28, 2011 at 06:01:53PM +0200, Marc-André Lureau wrote: > Each time a {Dynamic,MultyMon}Scren is created, a new platform_win is > created to receive the notifications from X11. This looks very > suspicious already. Since I am not a xlib expert, I suppose that each > window will receive X

[Spice-devel] [PATCH] RFC: client/x11: reuse existing platform_win

2011-07-28 Thread Marc-André Lureau
Each time a {Dynamic,MultyMon}Scren is created, a new platform_win is created to receive the notifications from X11. This looks very suspicious already. Since I am not a xlib expert, I suppose that each window will receive X11 events. Whenever XRR ScreenChangeNotify event is received (caused by ex

Re: [Spice-devel] [PATCH qxl-win v4 1/3] display/surface: add surfaces from/to ram

2011-07-28 Thread Yonit Halperin
On 07/27/2011 07:17 PM, Alon Levy wrote: ACK all except for the comment bellow. You didn't send the patch for asynchronous io port support(8e64b0f77890). I ACK it as well. Yonit. Adds fields to SurfaceInfo to cache data previously only available via SurfaceArea::draw_area. Adds two functions

[Spice-devel] spicy - how to forward a keypress to window manager in fullscreen

2011-07-28 Thread Emre Erenoglu
Hi, I use spicy for my virtual machines and it works perfectly. I have two monitors, so I enabled two qxl devices and put the windows on two monitors, then fullscreen each of them. So it's like I'm sitting in front of a real computer. However, when I need to go back to the host machine, I need t

Re: [Spice-devel] Dual head issues with Win7 Guests...

2011-07-28 Thread Alon Levy
On Wed, Jul 27, 2011 at 04:02:49PM -0700, Naga Mohan Pothula wrote: > Hi Alon, > > My requirement is to execute Disconnect/Extend displays thru > Vdagent/Vdservice by passing  IOCTL_VIDEO_SWITCH_DUALVIEW to qxl driver. > I haven't seen it is handled by miniport module. I want to know How QXL > d