From: "Jan Beulich" Subject: Re: [PATCH RFC V4 2/5] xen: Optimize introspection access to guest state Date: Mon, 04 Aug 2014 15:16:21 +0100 Message-ID: <53DFB1D50200007800029126@mail.emea.novell.com> References: <1407151825-3843-1-git-send-email-rcojocaru@bitdefender.com> <1407151825-3843-2-git-send-email-rcojocaru@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1407151825-3843-2-git-send-email-rcojocaru@bitdefender.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Razvan Cojocaru Cc: kevin.tian@intel.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, eddie.dong@intel.com, xen-devel@lists.xen.org, jun.nakajima@intel.com, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 04.08.14 at 13:30, wrote: > Changes since V3: > - Changed the name of VCPU variables referring to the current > VCPU to "curr". > - Renamed "mem_event_regs" to "x86_mem_event_regs" to make it > explicit. That's a step in the right direction, but perhaps not enough. I realize the whole header doesn't meet the requirements we nowadays put on public ones, but let's at least not make it worse. I.e. in the case at hand either out a xen_ prefix as the very first thing (making this structure's name not match anything else in that header) or as a compromise stay at least with the mem_event_ prefix, i.e. name it mem_event_regs_x86. Furthermore as typedef-ed name with out _t suffix is kind of unusual. I'm not sure if it was in the context of this series that someone suggested that the _t collides with the C standard. If that's really the case, and since you don't need a handle for the type, please just avoid the typedef (and drop the _st suffix from the structure tag at once). Jan