From nobody Mon Feb 9 18:18:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1653636299; cv=none; d=zohomail.com; s=zohoarc; b=iU8oCzM4SXkH1UaVFIqJaxt9Xpe3LGjJyQPZmf7fo6SSe5kb60Dcbju0E1bBdGKdeBJ7DRTUPfC9IuPllEu+NTetP3REG4U5XJCoHHuBue4LES2pznYQ5WepMR1GDg2Bot7vZ7imHe192MrErYjRGI2CNsOTTttfDt7ysM/OgYw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653636299; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=E+SUmV11tds+ppSwEyJnfHL4XIHvPoscWfM4Hj0mYrg=; b=Ccllb9hJ1oToQ/B1U03TrSml7Dje7MYsYeLXRlb79V8RN9f+oY6cZWfWGQXXNPtJb/RXL0yf4SjrJf/IEV3zC+Fb5GASluHL+8t9RR3kwXmZPjRg9LCnNEbMOs1QzyMCNE9Fi50FRAHD6zQW4oFH09FEnkxpamDE2id8JXqep1M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 165363629945359.91632373214668; Fri, 27 May 2022 00:24:59 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.337815.562547 (Exim 4.92) (envelope-from ) id 1nuUKr-0004WG-6d; Fri, 27 May 2022 07:24:37 +0000 Received: by outflank-mailman (output) from mailman id 337815.562547; Fri, 27 May 2022 07:24:37 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nuUKr-0004W5-14; Fri, 27 May 2022 07:24:37 +0000 Received: by outflank-mailman (input) for mailman id 337815; Fri, 27 May 2022 07:24:35 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nuUKo-0003UV-Tk for xen-devel@lists.xenproject.org; Fri, 27 May 2022 07:24:35 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0cb93622-dd8e-11ec-bd2c-47488cf2e6aa; Fri, 27 May 2022 09:24:31 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DD5501F945; Fri, 27 May 2022 07:24:30 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A53CD139C4; Fri, 27 May 2022 07:24:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sP8tJ658kGJLIgAAMHmgww (envelope-from ); Fri, 27 May 2022 07:24:30 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 0cb93622-dd8e-11ec-bd2c-47488cf2e6aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1653636270; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E+SUmV11tds+ppSwEyJnfHL4XIHvPoscWfM4Hj0mYrg=; b=i+mJb0wqBZEFW+3y5/4of/g4Mt0FA2xAv7LPJOuWePAK7Nv+7XbpUex2kYg2hhafQx4TmF ec0x7Uo9pLTc2dXI4wWDzUTQAXctdEBhRB1jH+l/KRWYMgYcMhFubaI2Tvioa2N+Sf8lP3 /tlz3TCMG+ARSeYtBJ8pRVWvpjPRFZI= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v2 4/4] tools/xenstore: add documentation for extended watch command Date: Fri, 27 May 2022 09:24:27 +0200 Message-Id: <20220527072427.20327-5-jgross@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220527072427.20327-1-jgross@suse.com> References: <20220527072427.20327-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1653636300133100003 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Julien Grall --- This will probably need an extension of the Xenstore migration protocol, too. --- 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 2792d13530..dbc7335e24 100644 --- a/docs/misc/xenstore-ring.txt +++ b/docs/misc/xenstore-ring.txt @@ -69,6 +69,7 @@ Bit Description ----------------------------------------------------------------- 0 Ring reconnection (see the ring reconnection feature below) 1 Connection error indicator (see connection error feature below) +2 WATCH can take a third parameter limiting its scope =20 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 49b05e3c9a..e2daf2eef8 100644 --- a/docs/misc/xenstore.txt +++ b/docs/misc/xenstore.txt @@ -187,7 +187,7 @@ SET_PERMS ||+? =20 ---------- Watches ---------- =20 -WATCH ||? +WATCH ||[|]? Adds a watch. =20 When a is modified (including path creation, removal, @@ -198,7 +198,11 @@ WATCH ||? matching watch results in a WATCH_EVENT message (see below). =20 The event's path matches the watch's if it is an child - of . + of . This match can be limited by specifying (a + decimal value of 0 or larger): it denotes the directory levels + below to consider for a match ("0" would not match for + a child of , "1" would match only for a direct child, + etc.). =20 can be a to watch or @. In the latter case may have any syntax but it matches @@ -209,7 +213,13 @@ WATCH ||? shutdown, and also on RELEASE and domain destruction 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 differ for generating + events: specifying "1" will report the related domid by using + @/ for the reported path. Other + values are not supported. + For @releaseDomain it is possible to watch only for a specific + domain by specifying @releaseDomain/ for the path. =20 When a watch is first set up it is triggered once straight away, with equal to . Watches may be triggered --=20 2.35.3