From: Ian Campbell Subject: Re: [PATCH V4 22/24] xl: update domain configuration when we hotplug a device Date: Wed, 7 May 2014 11:42:42 +0100 Message-ID: <1399459362.11832.3.camel@kazak.uk.xensource.com> References: <1398949101-23320-1-git-send-email-wei.liu2@citrix.com> <1398949101-23320-23-git-send-email-wei.liu2@citrix.com> <5369147E.4060602@citrix.com> <20140506171301.GY17067@zion.uk.xensource.com> <536A0910.90209@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <536A0910.90209@citrix.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: David Vrabel Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-05-07 at 11:21 +0100, David Vrabel wrote: > >> Is libxl lacking is a proper device abstraction layer? > > > > libxl does have a device abstraction layer, but it cannot help much > > here. Not quite sure what "proper" means. > > At a minimum it looks like a libxl__device needs copy and add methods. It already has both, and this macro is using them. The real need for the macro here is C's lack of polymorphism (and/or libxl's failure to implement such a thing on top of C). Some of this might be alleviated by pushing the saving and updating of the stored config down into libxl as I suggested in anther reply this morning.