From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [RFC][PATCH v2 1/1] Add IOREQ_TYPE_VMWARE_PORT Date: Fri, 3 Oct 2014 10:51:52 +0100 Message-ID: <1412329912.423.23.camel@citrix.com> References: <1412274977-6098-1-git-send-email-dslutz@verizon.com> <1412274977-6098-2-git-send-email-dslutz@verizon.com> <542DB6A5.7080207@citrix.com> <542DCA02.10304@terremark.com> <542DD063.2090400@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Andrew Cooper , Keir Fraser , Jan Beulich , Don Slutz , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-10-03 at 10:47 +0100, Stefano Stabellini wrote: > The issue with a union is compatibility with older QEMU versions: we can > introduce the union and retain compatibility only if we use anonymous > unions. However I seem to recall Jan arguing against anonymous unions > in public interfaces in past. The canonical headers in xen/include/public are supposed to be strict ANSI C and anonymous unions are a gcc extension. However no-one is obliged to use this copy and several projects (including Linux, *BSD and others) take copies and modify them to suite their local coding styles/conventions etc. That could include using anonymous unions if that is preferable. I'm not sure if that helps you here though (since the issue AIUI is with existing qemu releases...) Ian.