From: Ian Jackson Subject: Re: [PATCH V5 31/32] libxl: update domain configuration when updating memory targets Date: Tue, 20 May 2014 16:44:15 +0100 Message-ID: <21371.30799.888333.410499@mariner.uk.xensource.com> References: <1400018054-26038-1-git-send-email-wei.liu2@citrix.com> <1400018054-26038-32-git-send-email-wei.liu2@citrix.com> <21371.29430.825838.51813@mariner.uk.xensource.com> <1400600103.6946.102.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400600103.6946.102.camel@kazak.uk.xensource.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: Ian Campbell Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH V5 31/32] libxl: update domain configuration when updating memory targets"): > The device cases in particular are a lot harder to handle in that way. > This was how I originally envisaged this would work, Wei's approach > seemed to me to be much much simpler. Much of the work of turning the xenstore info for a device back into a libxl_disk_device or whatever has already been done: see e.g. libxl__device_disk_from_xs_be. Merging the lists from libxl_device_disk_list and the JSON configuration shouldn't be too hard and will eliminate a lot of worry about races. Ian.