Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D46E9C5519D for ; Mon, 27 Apr 2020 15:14:07 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF3AA2054F for ; Mon, 27 Apr 2020 15:14:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF3AA2054F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jT5S3-0004Y4-W6; Mon, 27 Apr 2020 15:13:43 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jT5S3-0004Xz-9D for xen-devel@lists.xenproject.org; Mon, 27 Apr 2020 15:13:43 +0000 X-Inumbo-ID: ade19a05-8899-11ea-97a8-12813bfff9fa Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id ade19a05-8899-11ea-97a8-12813bfff9fa; Mon, 27 Apr 2020 15:13:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2AE05ABCF; Mon, 27 Apr 2020 15:13:40 +0000 (UTC) Subject: Re: [PATCH v3] docs/designs: re-work the xenstore migration document... To: Paul Durrant , xen-devel@lists.xenproject.org References: <20200427150620.540-1-paul@xen.org> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Mon, 27 Apr 2020 17:13:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200427150620.540-1-paul@xen.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Andrew Cooper , Paul Durrant , Ian Jackson , George Dunlap , Jan Beulich Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 27.04.20 17:06, Paul Durrant wrote: > From: Paul Durrant > > ... to specify a separate migration stream that will also be suitable for > live update. > > The original scope of the document was to support non-cooperative migration > of guests [1] but, since then, live update of xenstored has been brought into > scope. Thus it makes more sense to define a separate image format for > serializing xenstore state that is suitable for both purposes. > > The document has been limited to specifying a new image format. The mechanism > for acquiring the image for live update or migration is not covered as that > is more appropriately dealt with by a patch to docs/misc/xenstore.txt. It is > also expected that, when the first implementation of live update or migration > making use of this specification is committed, that the document is moved from > docs/designs into docs/specs. > > NOTE: It will only be necessary to save and restore state for active xenstore > connections, but the documentation for 'RESUME' in xenstore.txt implies > otherwise. That command is unused so this patch deletes it from the > specification. > > [1] See https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=docs/designs/non-cooperative-migration.md > > Signed-off-by: Paul Durrant > --- > Cc: Juergen Gross > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Julien Grall > Cc: Stefano Stabellini > Cc: Wei Liu > > v3: > - Address missed comments from Juergen Not all :-( > > v2: > - Address comments from Juergen > --- ... > +### NODE_DATA > + > +For live update the image format will contain a `NODE_DATA` record for each > +node in xenstore. For migration it will only contain a record for the nodes > +relating to the domain being migrated. The `NODE_DATA` may be related to > +a _committed_ node (globally visible in xenstored) or a _pending_ node (created > +or modified by a transaction for which there is also a `TRANSACTION_DATA` > +record previously present). > > -The `TRANSACTION_START` operation does not allow specification of a > -``; it is assumed that the transaction pertains to the domain that > -owns the shared ring over which the operation is passed. Neither does it > -allow a `` to be specified; it is always chosen by xenstored. > -Hence, for the tool-stack to be able to open a transaction on behalf of a > -domain a new operation is needed: > > ``` > -START_DOMAIN_TRANSACTION || > + 0 1 2 3 octet > ++-------+-------+-------+-------+ > +| conn-id | > ++-------------------------------+ > +| tx-id | > ++---------------+---------------+ > +| access | perm-count | > ++---------------+---------------+ > +| perm1 | > ++-------------------------------+ > +... > ++-------------------------------+ > +| permN | > ++---------------+---------------+ > +| path-len | value-len | > ++---------------+---------------+ path-len and value-len are still after perm1...permN, which makes it impossible to include them in a struct. Could you please either move them before the perm array or tell me why not? Juergen