From: Markus Armbruster Subject: Re: [RFC] PVFB: Add refresh period to XenStore parameters? Date: Mon, 05 May 2008 10:26:14 +0200 Message-ID: <877ie917ix.fsf@pike.pond.sub.org> References: <20080229120806.GA8268@implementation.uk.xensource.com> <873ar7ptvh.fsf@pike.pond.sub.org> <20080303191804.GA11699@implementation.uk.xensource.com> <873ar68spy.fsf@pike.pond.sub.org> <20080304144952.GA9230@implementation.uk.xensource.com> <873ar67anv.fsf@pike.pond.sub.org> <20080304161220.GA9852@implementation.uk.xensource.com> <20080501175536.GV4797@implementation.uk.xensource.com> <20080502160638.GG4819@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20080502160638.GG4819@implementation.uk.xensource.com> (Samuel Thibault's message of "Fri\, 2 May 2008 17\:06\:38 +0100") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Samuel Thibault writes: > Samuel Thibault, le Thu 01 May 2008 18:55:36 +0100, a =C3=A9crit : >> Getting back to that old issue. >>=20 >> Samuel Thibault, le Tue 04 Mar 2008 16:12:20 +0000, a =C3=A9crit : >> > > * If the frontend can track changes efficiently, it sends update >> > > messages to the backend, which can use them to only redisplay >> > > changed areas. >> >=20 >> > Well, that was actually my next target :) >> > (but for that we badly need the resize/redepth support). >> >=20 >> > However, that doesn't solve something that still bugs me, which is >> > that the VGA emulation layer wakes up every 30ms to just notice that >> > the width/height/depth registers didn't change etc. even if the actual >> > window is not shown. >>=20 >> What could be done is to make the backend set request-update to 0 when >> the window is minimized, which makes the frontend understand that there >> is temporarily no need to send updates any more, and set it back to 1 >> when the window is restored. Would that be OK? > > Here is how it would be implemented: > > > ioemu: transmit idleness information to avoid useless polls > > Signed-off-by: Samuel Thibault Any particular reason for going through xenstore instead of the event rings? If I read your patch correctly, xenfb_read_frontend_fb_config() sets request-update in xenstore depending on xenfb->ds->idle, during startup. The only place that changes it is xenfb_update(), which is #ifdef CONFIG_STUBDOM. What if ds->idle is true when xenfb_read_frontend_fb_config() runs during startup of the ordinary (!CONFIG_STUBDOM) backend? Can this happen? If not, why? Other than that, the change seems to affect only Mini-OS and CONFIG_STUBDOM, which are both outside the area of my expertise (and frankly, interest).