Skip to contentSkip to conversation

docs/misc: xenstored: Re-instate and tweak the documentation for XS_RESUME

PATCH In review Julien Grall 4 participants 5 messages Mar 25, 2021 – Mar 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/misc: xenstored: Re-instate and tweak the documentation for XS_RESUME

From: Julien Grall <[email protected]>

Commit 13dd372834a4 removed the documentation for XS_RESUME, however this command is still implemented (at least in C Xenstored) and used by libxl when resuming a domain.

So re-instate the documentation for the XS_RESUME. Take the opportunity to update it as there is a user of the command.

Fixes 13dd372834a4 ("docs/designs: re-work the xenstore migration document...")

---

Ian, would you still consider documentation update for 4.15?

I looked at the implementation of domain_resume() in Xen, it doesn't look like we can get away with XS_RESUME because Xen will not send VIRQ_DOM_EXC on resume.

---
 docs/misc/xenstore.txt | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
docs/misc/xenstore.txt +16 -0
index 148074233001..334dc8b6fdf5 100644
@@ -294,6 +294,22 @@ IS_DOMAIN_INTRODUCED	<domid>|		T| or F|
 	ie, if INTRODUCE for the domain has not yet been followed by
 	domain destruction or explicit RELEASE.
 
+RESUME			<domid>|
+
+	Arranges that @releaseDomain events will once more be
+	generated when the domain becomes shut down.  This might have
+	to be used if a domain were to be shut down (generating one
+	@releaseDomain) and then subsequently restarted, since the
+	state-sensitive algorithm in xenstored will not otherwise send
+	further watch event notifications if the domain were to be
+	shut down again.
+
+	This command will be issued in place such as resume because
+	Xen will "shutdown" the domain on suspend.
+
+	xenstored prevents the use of RESUME other than by dom0.
+
+
 SET_TARGET		<domid>|<tdomid>|
 	Notifies xenstored that domain <domid> is targeting domain
 	<tdomid>. This grants domain <domid> full access to paths
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Julien Grall

From: Julien Grall <[email protected]>

Commit 13dd372834a4 removed the documentation for XS_RESUME, however this command is still implemented (at least in C Xenstored) and used by libxl when resuming a domain.

So re-instate the documentation for the XS_RESUME. Take the opportunity to update it as there is a user of the command.

Quoted 8 lines
Fixes 13dd372834a4 ("docs/designs: re-work the xenstore migration document...")

---

Quoted 38 lines

Ian, would you still consider documentation update for 4.15?

I looked at the implementation of domain_resume() in Xen, it doesn't look like we can get away with XS_RESUME because Xen will not send VIRQ_DOM_EXC on resume.

---
  docs/misc/xenstore.txt | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)
docs/misc/xenstore.txt +16 -0
index 148074233001..334dc8b6fdf5 100644
@@ -294,6 +294,22 @@ IS_DOMAIN_INTRODUCED	<domid>|		T| or F|
  	ie, if INTRODUCE for the domain has not yet been followed by
  	domain destruction or explicit RELEASE.
 
+RESUME			<domid>|
+
+	Arranges that @releaseDomain events will once more be
+	generated when the domain becomes shut down.  This might have
+	to be used if a domain were to be shut down (generating one
+	@releaseDomain) and then subsequently restarted, since the
+	state-sensitive algorithm in xenstored will not otherwise send
+	further watch event notifications if the domain were to be
+	shut down again.
+
+	This command will be issued in place such as resume because
+	Xen will "shutdown" the domain on suspend.
+
+	xenstored prevents the use of RESUME other than by dom0.
+
+
  SET_TARGET		<domid>|<tdomid>|
  	Notifies xenstored that domain <domid> is targeting domain
  	<tdomid>. This grants domain <domid> full access to paths
Reviewed-by on v1 1/1
#2 lore raw
In reply to Julien Grall
Quoted 11 lines · Julien Grall

From: Julien Grall <[email protected]>

Commit 13dd372834a4 removed the documentation for XS_RESUME, however this command is still implemented (at least in C Xenstored) and used by libxl when resuming a domain.

So re-instate the documentation for the XS_RESUME. Take the opportunity to update it as there is a user of the command.

Fixes 13dd372834a4 ("docs/designs: re-work the xenstore migration document...")

Juergen

Reviewed-by on v1 1/1
#3 lore raw
In reply to Julien Grall

Julien Grall writes ("[PATCH for-4.15?] docs/misc: xenstored: Re-instate and tweak the documentation for XS_RESUME"):

Quoted 8 lines

From: Julien Grall <[email protected]>

Commit 13dd372834a4 removed the documentation for XS_RESUME, however this command is still implemented (at least in C Xenstored) and used by libxl when resuming a domain.

So re-instate the documentation for the XS_RESUME. Take the opportunity to update it as there is a user of the command.

This is just docs, so:

#4 lore raw

Hi Ian,

Quoted 7 lines · Ian Jackson

Julien Grall writes ("[PATCH for-4.15?] docs/misc: xenstored: Re-instate and tweak the documentation for XS_RESUME"):

Quoted 6 lines

From: Julien Grall <[email protected]>

Commit 13dd372834a4 removed the documentation for XS_RESUME, however this command is still implemented (at least in C Xenstored) and used by libxl when resuming a domain.

Quoted 7 lines
Quoted 2 lines

So re-instate the documentation for the XS_RESUME. Take the opportunity to update it as there is a user of the command.

This is just docs, so:

Thanks! I have committed the patch to staging and cherry-pick in staging-4.15.

Cheers,

Signature · 1 line
Julien Grall