From: Ian Jackson Subject: Re: [PATCH v2 2/7] libxl: add new hotplug interface support to hotplug script callers [and 1 more messages] Date: Thu, 18 Apr 2013 18:52:15 +0100 Message-ID: <20848.13007.215847.704470@mariner.uk.xensource.com> References: <1366213647-38638-1-git-send-email-roger.pau@citrix.com> <1366213647-38638-3-git-send-email-roger.pau@citrix.com> <1363607231-35228-1-git-send-email-roger.pau@citrix.com> <1363607231-35228-3-git-send-email-roger.pau@citrix.com> <20838.58843.639724.560320@mariner.uk.xensource.com> <20848.11292.135736.116511@mariner.uk.xensource.com> <51703023.70107@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <51703023.70107@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: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monn=E9 writes ("Re: [Xen-devel] [PATCH v2 2/7] libxl: add new ho= tplug interface support to hotplug script callers [and 1 more messages]"): > On 18/04/13 19:23, Ian Jackson wrote: > > AFAICT what happens after your series is applied is that we always > > call prepare just before add, and unprepare just after remove (if I > > may neglect local attach for now). So I don't see why these new > > functions are necessary to your new scripts. > = > Do you mean that both prepare and add are called after the domain on the > sender side is paused? I don't know exactly what I mean :-). > Disks are prepared on "initiate_domain_create", which is the first > function that gets called on domain creation, on the other hand they are > added much later. You can't write that in the documentation because it's in terms of the internal workings of libxl. What is the purpose of the distinction between prepare and add ? Ian.