From: Julien Grall <julien@xen.org>
To: Juergen Gross <jgross@suse.com>, xen-devel@lists.xenproject.org
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [PATCH v8 7/9] docs: update xenstore migration stream definition
Date: Tue, 11 Mar 2025 09:43:14 +0000 [thread overview]
Message-ID: <526952a6-eb7a-4055-bd3f-eae1af203f80@xen.org> (raw)
In-Reply-To: <20250204113407.16839-8-jgross@suse.com>
Hi Juergen,
On 04/02/2025 11:34, Juergen Gross wrote:
> In order to close a race window for Xenstore live update when using
> the new unique_id of domains, the migration stream needs to contain
> this unique_id for each domain known by Xenstore.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
> ---
> V8:
> - new patch
> ---
> docs/designs/xenstore-migration.md | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/docs/designs/xenstore-migration.md b/docs/designs/xenstore-migration.md
> index 082314bf72..fba691ee0d 100644
> --- a/docs/designs/xenstore-migration.md
> +++ b/docs/designs/xenstore-migration.md
> @@ -156,7 +156,7 @@ the domain being migrated.
> ```
> 0 1 2 3 4 5 6 7 octet
> +-------+-------+-------+-------+-------+-------+-------+-------+
> -| conn-id | conn-type | |
> +| conn-id | conn-type | uniq-id-off |
> +-------------------------------+---------------+---------------+
> | conn-spec> ...
> @@ -165,6 +165,9 @@ the domain being migrated.
> +---------------+---------------+-------------------------------+
> | data
> ...
> ++---------------------------------------------------------------+
> +| unique-id |
> ++---------------------------------------------------------------+
> ```
>
>
> @@ -178,6 +181,12 @@ the domain being migrated.
> | | 0x0001: socket |
> | | 0x0002 - 0xFFFF: reserved for future use |
> | | |
> +| `uniq-id-off` | The offset (in octets) of the `unique-id` |
> +| | field from the start of the record body. |
> +| | If 0, no `unique-id` field is present. |
> +| | Only needed for `shared ring` connection in |
> +| | live update streams. |
> +| | |
Looking at the rest of the record, the unique ID would be past the
in-data (length is 2-byte) and the out-data (length is 4-byte). So
technically the offset would need 5-bytes. But here you are using
2-bytes. Can you explain why?
Cheers,
--
Julien Grall
next prev parent reply other threads:[~2025-03-11 9:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 11:33 [PATCH v8 0/9] remove libxenctrl usage from xenstored Juergen Gross
2025-02-04 11:33 ` [PATCH v8 1/9] xen/events: don't allow binding a global virq from any domain Juergen Gross
2025-03-11 9:35 ` Julien Grall
2025-03-11 9:51 ` Jürgen Groß
2025-03-11 19:04 ` Julien Grall
2025-03-12 7:05 ` Jürgen Groß
2025-02-04 11:34 ` [PATCH v8 2/9] xen/events: allow setting of global virq handler only for unbound virqs Juergen Gross
2025-02-04 11:34 ` [PATCH v8 3/9] xen: add bitmap to indicate per-domain state changes Juergen Gross
2025-03-06 15:41 ` Jan Beulich
2025-03-06 15:52 ` Jürgen Groß
2025-02-04 11:34 ` [PATCH v8 4/9] xen: add new domctl get_changed_domain Juergen Gross
2025-02-04 11:34 ` [PATCH v8 5/9] tools/libs: add a new libxenmanage library Juergen Gross
2025-02-04 11:34 ` [PATCH v8 6/9] tools/xenstored: use new stable interface instead of libxenctrl Juergen Gross
2025-02-04 11:34 ` [PATCH v8 7/9] docs: update xenstore migration stream definition Juergen Gross
2025-03-11 9:43 ` Julien Grall [this message]
2025-03-11 9:58 ` Jürgen Groß
2025-03-11 18:52 ` Julien Grall
2025-02-04 11:34 ` [PATCH v8 8/9] tools/xenstored: use unique_id to identify new domain with same domid Juergen Gross
2025-03-12 17:40 ` Jason Andryuk
2025-03-13 9:52 ` Jürgen Groß
2025-02-04 11:34 ` [PATCH v8 9/9] tools/xenstored: use xenmanage_poll_changed_domain() Juergen Gross
2025-03-12 17:45 ` Jason Andryuk
2025-03-13 9:53 ` Jürgen Groß
2025-02-25 11:10 ` [PATCH v8 0/9] remove libxenctrl usage from xenstored Juergen Gross
2025-03-05 8:23 ` Juergen Gross
2025-03-05 23:32 ` Stefano Stabellini
2025-03-06 13:13 ` Jan Beulich
2025-03-06 13:27 ` Jürgen Groß
2025-03-06 13:53 ` Jan Beulich
2025-03-06 13:56 ` Jürgen Groß
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=526952a6-eb7a-4055-bd3f-eae1af203f80@xen.org \
--to=julien@xen.org \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.