From: Tim Deegan Subject: Re: [PATCH 1/2] x86/vRTC: Make rtc_mode_{strict, no_ack} a per-domain option Date: Thu, 28 Nov 2013 11:45:07 +0100 Message-ID: <20131128104507.GC36239@deinos.phlegethon.org> References: <1385498358-10077-1-git-send-email-andrew.cooper3@citrix.com> <1385498358-10077-2-git-send-email-andrew.cooper3@citrix.com> <5295CFB402000078001076EB@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vlz5t-00009M-QR for xen-devel@lists.xenproject.org; Thu, 28 Nov 2013 10:45:14 +0000 Content-Disposition: inline In-Reply-To: <5295CFB402000078001076EB@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Keir Fraser , xen-devel List-Id: xen-devel@lists.xenproject.org At 09:55 +0000 on 27 Nov (1385542548), Jan Beulich wrote: > >>> On 26.11.13 at 21:39, Andrew Cooper wrote: > > +/* This forms an ABI in HVM_PARAM_RTC_MODE */ > > Irrespective of this ... > > > enum rtc_mode { > > - rtc_mode_no_ack, > > - rtc_mode_strict > > + rtc_mode_no_ack = 0, > > + rtc_mode_strict = 1 > > ... this is a pointless change - the C specification requires them to > be 0 and 1 respectively. There would be a point to this only if you > added #define-s to the public interface (and used them here). I think that's a good idea -- the code assumes that the toolstack's choice of 0 and 1 match this enum, so it should be made explicit here (so later engineers don't reshuffle the enum for some reason). Tim.