qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 5/5] linux fbdev display driver.


From: Julian Pidancet
Subject: Re: [Qemu-devel] Re: [PATCH 5/5] linux fbdev display driver.
Date: Fri, 18 Jun 2010 13:00:25 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Shredder/3.0.4

On 06/18/2010 08:32 AM, Gerd Hoffmann wrote:
>    Hi,
> 
>> For some reason, the display is extremely slow when using vnc and
>> fbdev at the same time.
> 
> Gotcha.  Didn't notice, but it probably depends on the hardware.  Very 
> likely the reason is that graphic cards usually are optimized for write 
> access and reads might be slow as hell.   vnc must read though.
> 

Access to the framebuffer are cached Write-Combining by default with fbdev, 
which is probably causing this latency.

One solution would be to disable the display allocator when vnc is present, and 
let it read from a software surface instead of reading from the framebuffer 
(like in your initial patch). It would probably decrease display performance, 
but not as much as it is now if we let the vnc driver read from the hardware 
framebuffer.

We can easily implement a surface usage counter in the display allocator code, 
so the fbdev driver can know whether or not the surface is read by other 
drivers at the same time.

-- 
Julian Pidancet



reply via email to

[Prev in Thread] Current Thread [Next in Thread]