[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] tools/xenstore: add documentation for extended watch command


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Wed, 16 Mar 2022 18:16:52 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1LPbMz1+hxUjd+1jANi9gXQwCmrboKPbX+r2mfQ8QT4=; b=ew7qUdsaz1wIzbgm2FThj7MXpNjz1NqozZP0LUxlaMWLESgR0smLYhDATmJRBFh/2LgC+gP0NS1giaVzJJ9UJSleV9+vozA0mYcCwpbKgxkVZe3Tg5+q0ydpjz5o+HJcupqqC5TAxxpxuJGCPP7r6np9S08PUeB2uqsu/N4bgnUiccwrIjHFxp/bpt4nxzZQ2XUBxlTRy/MJLD2NEzYr/QTZv+ehSMQ110lDSJ/CC7RO5VSZZLcHhESim+PhATW4cpavRY3Iw93pmOOMD1mxtHoOQYxhFLaoaZBpHlV/2+xYu/pdBNs0H0aGlMPcprdlkJxvXiyGhT7BGwSZTNY8BA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D9GVLzY6COHb22T/7C8TD3h+WVBE2xMoUGOsJAypMIY6UBiD8gIL4Y9qUhtWoTsQKMmFyhQCJKJmT3N02FxFV1XGIzUZSUWTvpK5dsPJMkfiQlyYYuzmDpR/5RP5fqYUdRXoat8ZeqLTaLUK5vTW7wxFbg1SnRUfM+PyEYlNbieuvpJ0IoDTpyMYexIh4hm5xV1lsPoaW3jP9tNPwjzHa0q8WvJB3sQRQ4ChwR0cL+kKRXRucNrSpuqqjV14YgBrgePk93/yAXgDk/bqk6p0AtjTgEJ+nviZc0BTMNALddz5FUbNACGgT3IcybP2VGlxWzo4BdxK4uPpZbGoFLGs5A==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 16 Mar 2022 18:17:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYOVBwqPi09a60w0Ci2FVt6reoH6zCUWQA
  • Thread-topic: [PATCH 3/3] tools/xenstore: add documentation for extended watch command


> On 16 Mar 2022, at 16:10, Juergen Gross <jgross@xxxxxxxx> wrote:
> 
> Add documentation for an extension of the WATCH command used to limit
> the scope of watched paths. Additionally it enables to receive more
> information in the events related to special watches (@introduceDomain
> or @releaseDomain).
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> ---
> docs/misc/xenstore-ring.txt |  1 +
> docs/misc/xenstore.txt      | 16 +++++++++++++---
> 2 files changed, 14 insertions(+), 3 deletions(-)
> 
> diff --git a/docs/misc/xenstore-ring.txt b/docs/misc/xenstore-ring.txt
> index 0cb72a3e35..eaa6d0a1a3 100644
> --- a/docs/misc/xenstore-ring.txt
> +++ b/docs/misc/xenstore-ring.txt
> @@ -70,6 +70,7 @@ Mask    Description
> 2       Connection error indicator (see connection error feature below)
> 4       GET_FEATURE and SET_FEATURE Xenstore wire commands are available
> 8       GET_QUOTA and SET_QUOTA Xenstore wire commands are available
> +16      WATCH can take a third parameter limiting its scope
> 
> The "Connection state" field is used to request a ring close and reconnect.
> The "Connection state" field only contains valid data if the server has
> diff --git a/docs/misc/xenstore.txt b/docs/misc/xenstore.txt
> index dd75a81328..f86c6d9757 100644
> --- a/docs/misc/xenstore.txt
> +++ b/docs/misc/xenstore.txt
> @@ -188,7 +188,7 @@ SET_PERMS         <path>|<perm-as-string>|+?
> 
> ---------- Watches ----------
> 
> -WATCH                        <wpath>|<token>|?
> +WATCH                        <wpath>|<token>|[<depth>|]?
>       Adds a watch.
> 
>       When a <path> is modified (including path creation, removal,
> @@ -199,7 +199,11 @@ WATCH                    <wpath>|<token>|?
>       matching watch results in a WATCH_EVENT message (see below).
> 
>       The event's path matches the watch's <wpath> if it is an child
> -     of <wpath>.
> +     of <wpath>. This match can be limited by specifying <depth> (a
> +     decimal value of 0 or larger): it denotes the directory levels
> +     below <wpath> to consider for a match ("0" would not match for
> +     a child of <wpath>, "1" would match only for a direct child,
> +     etc.).
> 
>       <wpath> can be a <path> to watch or @<wspecial>.  In the
>       latter case <wspecial> may have any syntax but it matches
> @@ -210,7 +214,13 @@ WATCH                    <wpath>|<token>|?
>                               shutdown, and also on RELEASE
>                               and domain destruction
>       <wspecial> events are sent to privileged callers or explicitly
> -     via SET_PERMS enabled domains only.
> +     via SET_PERMS enabled domains only. The semantics for a
> +     specification of <depth> differ for generating <wspecial>

Typo: s/differ/differs/?

> +     events: specifying "1" will report the related domid by using
> +     @<wspecial>/<domid> for the reported path. Other <depth>
> +     values are not supported.
> +     For @releaseDomain it is possible to watch only for a specific
> +     domain by specifying @releaseDomain/<domid> for the path.
> 
>       When a watch is first set up it is triggered once straight
>       away, with <path> equal to <wpath>.  Watches may be triggered
> -- 
> 2.34.1
> 
> 

I’m not an English native speaker so apologies if there is no mistake.

With that fixed (if it’s wrong):

Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>

Cheers,
Luca


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.