From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v5 6/9] libxl: add libxl__domain_soft_reset_destroy() Date: Tue, 13 Jan 2015 13:58:30 +0000 Message-ID: <1421157510.19103.64.camel@citrix.com> References: <1418305541-5135-1-git-send-email-vkuznets@redhat.com> <1418305541-5135-7-git-send-email-vkuznets@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YB1zR-0005zt-E6 for xen-devel@lists.xenproject.org; Tue, 13 Jan 2015 13:58:37 +0000 In-Reply-To: <1418305541-5135-7-git-send-email-vkuznets@redhat.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: Vitaly Kuznetsov Cc: Wei Liu , Andrew Jones , Julien Grall , Keir Fraser , Stefano Stabellini , Andrew Cooper , Ian Jackson , Olaf Hering , Tim Deegan , David Vrabel , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-12-11 at 14:45 +0100, Vitaly Kuznetsov wrote: > New libxl__domain_soft_reset_destroy() is an internal-only > version of libxl_domain_destroy() which follows the same domain > destroy path with the only difference: xc_domain_destroy() is > being avoided so the domain is not actually being destroyed. Rather than duplicating the bulk of libxl_domain_destroy, please make this libxl__domain_destroy taking a flag and turn libxl_domain_destroy into a thin wrapper around the new internal version. > Add soft_reset flag to libxl__domain_destroy_state structure > to support the change. > > The original libxl_domain_destroy() function could be easily > modified to support new flag but I'm trying to avoid that as > it is part of public API. There are mechanisms which could be used here to rev the API if it was desirable to expose this flag to the calling toolstack for some reason, e.g. checkout the uses of LIBXL_API_VERSION in libxl.h. Ian.