From: Ian Jackson Subject: Re: [PATCH 07/13] libxl: convert libxl_domain_destroy to an AO op Date: Fri, 18 May 2012 17:19:07 +0100 Message-ID: <20406.30331.220461.206072@mariner.uk.xensource.com> References: <1337184716-49276-1-git-send-email-roger.pau@citrix.com> <1337184716-49276-8-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1337184716-49276-8-git-send-email-roger.pau@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 Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[PATCH 07/13] libxl: convert libxl_domain_destroy to an AO op"): > This change introduces some new structures, and breaks the mutual > dependency that libxl_domain_destroy and libxl__destroy_device_model > had. This is done by checking if the domid passed to > libxl_domain_destroy has a stubdom, and then having the bulk of the > destroy machinery in a separate function (libxl__destroy_domid) that > doesn't check for stubdom presence, since we check for it in the upper > level function. The reason behind this change is the need to use > structures for ao operations, and it was impossible to have two > different self-referencing structs. > > All uses of libxl_domain_destroy have been changed, and either > replaced by the new libxl_domain_destroy ao function or by the > internal libxl__domain_destroy that can be used inside an already > running ao. Can you separate out the code motion into a separate patch ? As it is it's very difficult to review. Also can you try to eliminate any code motion that's not strictly necessaray. Thanks, Ian.