Skip to contentSkip to conversation

docs: fix INTRODUCE description in xenstore.txt

PATCH Superseded Juergen Gross 3 participants 7 messages Mar 5, 2025 – Mar 10, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: fix INTRODUCE description in xenstore.txt

The description of the Xenstore INTRODUCE command is still referencing xend. Fix that.

While at it, make clear that the Xenstore implementation is allowed to ignore the specified gfn and use the Xenstore reserved grant id GNTTAB_RESERVED_XENSTORE instead.

---
 docs/misc/xenstore.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
docs/misc/xenstore.txt +5 -1
index 38015835b1..d894d24d11 100644
@@ -286,7 +286,7 @@ TRANSACTION_END		F|
 INTRODUCE		<domid>|<gfn>|<evtchn>|?
 	Notifies xenstored to communicate with this domain.
 
-	INTRODUCE is currently only used by xend (during domain
+	INTRODUCE is currently only used by xen tools (during domain
 	startup and various forms of restore and resume), and
 	xenstored prevents its use other than by dom0.
 
@@ -299,6 +299,10 @@ INTRODUCE		<domid>|<gfn>|<evtchn>|?
 	for example passing a high-bit-set 32-bit gfn as an unsigned
 	decimal will attempt to use 0x7fffffff instead (!).
 
+	Xenstored might ignore the <gfn> value and use the reserved
+	grant table entry GNTTAB_RESERVED_XENSTORE instead for mapping
+	the Xenstore interface page of the guest.
+
 RELEASE			<domid>|
 	Manually requests that xenstored disconnect from the domain.
 	The event channel is unbound at the xenstored end and the page
Signature · 1 line
2.43.0
#1 lore raw

Unrelated to the contents of this patch, but talking about docs/misc/xenstore.txt:
it also mentions GET/SET_QUOTA calls, but these are not part of the xs_wire.h, and instead can only be used as sub-arguments to CONTROL calls.

#2 lore raw
Quoted 4 lines · Andrii Sultanov

Unrelated to the contents of this patch, but talking about docs/misc/xenstore.txt:
it also mentions GET/SET_QUOTA calls, but these are not part of the xs_wire.h, and instead can only be used as sub-arguments to CONTROL calls.

I have a patch series in work adding those, plus the functionality in xenstored and xl/libxl.

If wanted I can post the xs_wire.h patch before the rest of the series.

Juergen

#3 lore raw
In reply to Juergen Gross
Quoted 26 lines · Juergen Gross

The description of the Xenstore INTRODUCE command is still referencing xend. Fix that.

While at it, make clear that the Xenstore implementation is allowed to ignore the specified gfn and use the Xenstore reserved grant id GNTTAB_RESERVED_XENSTORE instead.

---
 docs/misc/xenstore.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
docs/misc/xenstore.txt +1 -1
index 38015835b1..d894d24d11 100644
@@ -286,7 +286,7 @@ TRANSACTION_END		F|
 INTRODUCE		<domid>|<gfn>|<evtchn>|?
 	Notifies xenstored to communicate with this domain.
 
-	INTRODUCE is currently only used by xend (during domain
+	INTRODUCE is currently only used by xen tools (during domain
 	startup and various forms of restore and resume), and
 	xenstored prevents its use other than by dom0.
 

docs/misc/xenstore.txt INTRODUCE <domid>|<gfn>|<evtchn>|? · line 304

Quoted 6 lines
docs/misc/xenstore.txt +3 -0
@@ -299,6 +299,10 @@ INTRODUCE		<domid>|<gfn>|<evtchn>|?
 	for example passing a high-bit-set 32-bit gfn as an unsigned
 	decimal will attempt to use 0x7fffffff instead (!).
 
+	Xenstored might ignore the <gfn> value and use the reserved
+	grant table entry GNTTAB_RESERVED_XENSTORE instead for mapping
+	the Xenstore interface page of the guest.

I'd suggest making a stronger statement than this.

---
The <gfn> field is used by xenstoreds which use foreign mapping to access the ring page.

Alternatively, Grant 1 (GNTTAB_RESERVED_XENSTORE) is reserved for the same purpose, and is populated by the domain builder on behalf of the guest.  This mechanism is preferred because reduces the permissions that xenstored needs in order to function.

Both <gfn> and Grant 1 need to agree, because implementations of xenstored will use one and ignore the other.
---

~Andrew

#4 lore raw
Quoted 40 lines · Andrew Cooper
Quoted 26 lines · Juergen Gross

The description of the Xenstore INTRODUCE command is still referencing xend. Fix that.

While at it, make clear that the Xenstore implementation is allowed to ignore the specified gfn and use the Xenstore reserved grant id GNTTAB_RESERVED_XENSTORE instead.

---
  docs/misc/xenstore.txt | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
docs/misc/xenstore.txt +1 -1
index 38015835b1..d894d24d11 100644
@@ -286,7 +286,7 @@ TRANSACTION_END		F|
  INTRODUCE		<domid>|<gfn>|<evtchn>|?
  	Notifies xenstored to communicate with this domain.
 
-	INTRODUCE is currently only used by xend (during domain
+	INTRODUCE is currently only used by xen tools (during domain
  	startup and various forms of restore and resume), and
  	xenstored prevents its use other than by dom0.
 

docs/misc/xenstore.txt INTRODUCE <domid>|<gfn>|<evtchn>|? · line 304

Quoted 6 lines
docs/misc/xenstore.txt +3 -0
@@ -299,6 +299,10 @@ INTRODUCE		<domid>|<gfn>|<evtchn>|?
  	for example passing a high-bit-set 32-bit gfn as an unsigned
  	decimal will attempt to use 0x7fffffff instead (!).
 
+	Xenstored might ignore the <gfn> value and use the reserved
+	grant table entry GNTTAB_RESERVED_XENSTORE instead for mapping
+	the Xenstore interface page of the guest.

I'd suggest making a stronger statement than this.

---
The <gfn> field is used by xenstoreds which use foreign mapping to access the ring page.

Quoted 7 lines

Alternatively, Grant 1 (GNTTAB_RESERVED_XENSTORE) is reserved for the same purpose, and is populated by the domain builder on behalf of the guest.  This mechanism is preferred because reduces the permissions that xenstored needs in order to function.

Both <gfn> and Grant 1 need to agree, because implementations of xenstored will use one and ignore the other.

Fine with me.

Juergen

#5 lore raw
Quoted 43 lines · Jürgen Groß
Quoted 42 lines · Andrew Cooper
Quoted 21 lines · Juergen Gross

The description of the Xenstore INTRODUCE command is still referencing xend. Fix that.

While at it, make clear that the Xenstore implementation is allowed to ignore the specified gfn and use the Xenstore reserved grant id GNTTAB_RESERVED_XENSTORE instead.

---
  docs/misc/xenstore.txt | 6 +++++-

  1 file changed, 5 insertions(+), 1 deletion(-)
docs/misc/xenstore.txt +0 -0
index 38015835b1..d894d24d11 100644
@@ -286,7 +286,7 @@ TRANSACTION_END        F|

  INTRODUCE        <domid>|<gfn>|<evtchn>|?
      Notifies xenstored to communicate with this domain. -    INTRODUCE is currently only used by xend (during domain +    INTRODUCE is currently only used by xen tools (during domain

Quoted 8 lines

      startup and various forms of restore and resume), and xenstored prevents its use other than by dom0.
  @@ -299,6 +299,10 @@ INTRODUCE        <domid>|<gfn>|<evtchn>|? for example passing a high-bit-set 32-bit gfn as an unsigned decimal will attempt to use 0x7fffffff instead (!). +    Xenstored might ignore the <gfn> value and use the reserved +    grant table entry GNTTAB_RESERVED_XENSTORE instead for mapping +    the Xenstore interface page of the guest.

I'd suggest making a stronger statement than this.

---
The <gfn> field is used by xenstoreds which use foreign mapping to access the ring page.

Alternatively, Grant 1 (GNTTAB_RESERVED_XENSTORE) is reserved for the same purpose, and is populated by the domain builder on behalf of the guest.  This mechanism is preferred because reduces the permissions that xenstored needs in order to function.

Quoted 4 lines
Quoted 2 lines

Both <gfn> and Grant 1 need to agree, because implementations of xenstored will use one and ignore the other.

Fine with me.

Are you happy for me to adjust on commit, or do you want a v2 sending out?

~Andrew

#6 lore raw
Quoted 44 lines · Andrew Cooper
Quoted 43 lines · Jürgen Groß
Quoted 42 lines · Andrew Cooper
Quoted 19 lines · Juergen Gross

The description of the Xenstore INTRODUCE command is still referencing xend. Fix that.

While at it, make clear that the Xenstore implementation is allowed to ignore the specified gfn and use the Xenstore reserved grant id GNTTAB_RESERVED_XENSTORE instead.

---
   docs/misc/xenstore.txt | 6 +++++-
   1 file changed, 5 insertions(+), 1 deletion(-)
docs/misc/xenstore.txt +0 -0
index 38015835b1..d894d24d11 100644
@@ -286,7 +286,7 @@ TRANSACTION_END        F|
   INTRODUCE        <domid>|<gfn>|<evtchn>|?
       Notifies xenstored to communicate with this domain.

docs/misc/xenstore.txt TRANSACTION_END        F|

Quoted 10 lines
docs/misc/xenstore.txt +3 -0
   -    INTRODUCE is currently only used by xend (during domain
+    INTRODUCE is currently only used by xen tools (during domain
       startup and various forms of restore and resume), and
       xenstored prevents its use other than by dom0.
   @@ -299,6 +299,10 @@ INTRODUCE        <domid>|<gfn>|<evtchn>|?
       for example passing a high-bit-set 32-bit gfn as an unsigned
       decimal will attempt to use 0x7fffffff instead (!).
   +    Xenstored might ignore the <gfn> value and use the reserved
+    grant table entry GNTTAB_RESERVED_XENSTORE instead for mapping
+    the Xenstore interface page of the guest.

I'd suggest making a stronger statement than this.

---
The <gfn> field is used by xenstoreds which use foreign mapping to access the ring page.

Alternatively, Grant 1 (GNTTAB_RESERVED_XENSTORE) is reserved for the same purpose, and is populated by the domain builder on behalf of the guest.  This mechanism is preferred because reduces the permissions that xenstored needs in order to function.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Both <gfn> and Grant 1 need to agree, because implementations of xenstored will use one and ignore the other.

Fine with me.

Are you happy for me to adjust on commit, or do you want a v2 sending out?

~Andrew

I did send out V2:

https://lists.xen.org/archives/html/xen-devel/2025-03/msg00248.html

Juergen