Received: from eggs.gnu.org ([208.118.235.92]:33442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4tYE-0008Rb-QX for qemu-devel@nongnu.org; Fri, 24 Aug 2012 09:03:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4tY8-0007v7-PO for qemu-devel@nongnu.org; Fri, 24 Aug 2012 09:03:50 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:45578 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4tY8-0007v3-JA for qemu-devel@nongnu.org; Fri, 24 Aug 2012 09:03:44 -0400 Message-ID: <1345813421.19419.11.camel@zakaz.uk.xensource.com> From: Ian Campbell Date: Fri, 24 Aug 2012 14:03:41 +0100 In-Reply-To: <503779F5.80508@citrix.com> References: <51efcbff92f713286b5839884769ef34ab0c39f7.1345552068.git.julien.grall@citrix.com> <1345728617.12501.92.camel@zakaz.uk.xensource.com> <503779F5.80508@citrix.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 12/17] xl: Add interface to handle qemu disaggregation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Julien Grall Cc: "christian.limpach@gmail.com" , "xen-devel@lists.xen.org" , "qemu-devel@nongnu.org" , Stefano Stabellini On Fri, 2012-08-24 at 13:56 +0100, Julien Grall wrote: > On 08/23/2012 02:30 PM, Ian Campbell wrote: > > On Wed, 2012-08-22 at 13:31 +0100, Julien Grall wrote: > > > >> This patch modifies libxl interface for qemu disaggregation. > >> > > I'd rather see the interfaces changes in the same patch as the > > implementation of the new interfaces. > > > > > >> For the moment, due to some dependencies between devices, we > >> can't let the user choose which QEMU emulate a device. > >> > >> Moreoever this patch adds an "id" field to nic interface. > >> It will be used in config file to specify which QEMU handle > >> the network card. > >> > > Is domid+devid not sufficient to identify which nic? > > > Is the user can specify or find devid easily ? > I added "id" because, I would like that the user > can identify without any problem a network > interface. At the libxl level the libxl_device_nic struct has a devid in it. That's not to say that xl can't add a layer of naming and indirection on top. > >> @@ -246,6 +246,20 @@ libxl_domain_sched_params = Struct("domain_sched_params",[ > >> ("extratime", integer, {'init_val': 'LIBXL_DOMAIN_SCHED_PARAM_EXTRATIME_DEFAULT'}), > >> ]) > >> > >> +libxl_dm_cap = Enumeration("dm_cap", [ > >> + (1, "UI"), # Emulate all UI + default device > >> > > What does "default device" equate too? > > > The following devices: > - i440fx > - piix3 > - piix4 > - dma > - xen apic > - xen platform So this is more like "CORE" than "UI"? Is there a reason why UI (which I guess means the VGA, spice and VFB devices?) are required to be in the same emulator as these? > >> + (2, "IDE"), # Emulate IDE > >> + (4, "SERIAL"), # Emulate Serial > >> + (8, "AUDIO"), # Emulate audio > >> + ]) > >> +