From: Ian Campbell Subject: Re: [PATCH 14 of 32 RFC] libxl: HVM device configuration info build_info->u.hvm Date: Mon, 16 Jan 2012 17:45:54 +0000 Message-ID: <1326735955.14689.46.camel@zakaz.uk.xensource.com> References: <540c9fa96606437f3197.1326716112@cosworth.uk.xensource.com> <20244.20607.725332.428230@mariner.uk.xensource.com> <1326732404.14689.34.camel@zakaz.uk.xensource.com> <20244.22029.761565.805780@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20244.22029.761565.805780@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-01-16 at 16:53 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH 14 of 32 RFC] libxl: HVM device configuration info build_info->u.hvm"): > > While we are at it -- do you have any thoughts on how per-arch options > > should be handled? I was thinking of adding the possibility in the IDL > > to tag a field with a list of architectures? > > If we eventually tunnel these structures over some kind of IPC > mechanism it might be necessary to deal with values from other than > the native architecture. Hrm, yes. > So perhaps per-arch fields should exist in every version and just have > the arch in their name somehow, although that wouldn't spot people > setting them inappropriately. > > Alternative a variadic substructure where _init sets the enum to the > default native arch ? I wonder if these all fit into the existing build_info.u.{hvm,pv}. e.g. if we shouldn't have hvm_x86,pv_x86,arm etc instead? Another alternative is to do like we do for for foreign structures in the hypervisor and generate compat versions of each struct as well as native ones (e.g. libxl_x86_...). Ian.