From: Samuel Thibault Subject: Re: [RFC] PVFB: Add refresh period to XenStore parameters? Date: Fri, 9 May 2008 11:31:50 +0100 Message-ID: <20080509103150.GB4786@implementation.uk.xensource.com> References: <20080505165008.GP4497@implementation.uk.xensource.com> <87ve1rv8xb.fsf@pike.pond.sub.org> <20080506163255.GP4430@implementation.uk.xensource.com> <87lk2ntm0z.fsf@pike.pond.sub.org> <20080506172959.GR4430@implementation.uk.xensource.com> <871w4emaxx.fsf@pike.pond.sub.org> <20080507145426.GL4562@implementation.uk.xensource.com> <877ie5i4n7.fsf@pike.pond.sub.org> <20080508150146.GO4365@implementation.uk.xensource.com> <87hcd7c1gc.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <87hcd7c1gc.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Markus Armbruster, le Fri 09 May 2008 10:43:15 +0200, a écrit : > > + /* Will have to be disabled for frontends without feature-update */ > > I think I asked you to put this comment here, but is it still correct > for current XENFB_TYPE_REFRESH_PERIOD semantics? Considering the clarification of the semantic, it can be dropped indeed. > > + * > > + * If the frontend uses the advice, it should refresh and send an update event > > + * in response to this event. > > */ > > You delete the bit about ignoring unknown events. Oops. Oops. > What about this: Ok. > > +#define XENFB_TYPE_REFRESH_PERIOD 1 > > + > > +struct xenfb_refresh_period > > +{ > > + uint8_t type; /* XENFB_TYPE_UPDATE_PERIOD */ > > + uint32_t period; /* period of refresh, in ms, 0 if no refresh is needed */ > > +}; > > > > #define XENFB_IN_EVENT_SIZE 40 > > > > union xenfb_in_event > > { > > uint8_t type; > > + struct xenfb_refresh_period refresh_period; > > Time unit? There is one in the structure above. > I'd be tempted to use a frequency instead of a period, just because > that doesn't require a special value for "no updates". Strictly a > matter of taste. The "problem" of an integer frequency is that it does not permit a period of more than one second, which may become a limit in some odd situations (thousands of VMs waking every second?) Samuel