From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 06/27] tools/libxl: Split libxl__domain_create_state.restore_fd in two Date: Fri, 10 Jul 2015 10:37:18 +0100 Message-ID: <1436521038.23508.196.camel@citrix.com> References: <1436466413-25867-1-git-send-email-andrew.cooper3@citrix.com> <1436466413-25867-7-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436466413-25867-7-git-send-email-andrew.cooper3@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: Andrew Cooper Cc: Wei Liu , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2015-07-09 at 19:26 +0100, Andrew Cooper wrote: > In a future patch, we shall support automatically converting a legacy stream > to a v2 stream, in which case libxc needs to read from a different fd. > > Simply overwriting restore_fd does not work; the two fd's have different > circumstances. The restore_fd needs to be returned to its origial state > before libxl_domain_create_restore() returns, while in the converted case, the > fd needs allocating and deallocating appropriately. > > No functional change. > > Signed-off-by: Andrew Cooper Acked-by: Ian Campbell