Skip to contentSkip to conversation

docs/design: Update xenstore-migration.md

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/design: Update xenstore-migration.md

From: Julien Grall <[email protected]>

It is not very clear the shared page adddress is not contained in the connection record. Additionally, it is misleading to say the grant will always point to the share paged as a domain is free to revoke the permission. The restore code would need to make sure it doesn't fail/crash if this is happening.

The sentence is now replaced with a paragraph explaining why the GFN is not preserved and that the grant is not guarantee to exist during restore.

Take the opportunity to replace "code" with "node" when description the permission.

---
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

Ian, would you still consider documentation update for 4.15?

---
 docs/designs/xenstore-migration.md | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
docs/designs/xenstore-migration.md +5 -3
index 1a5b94b31da8..5f1155273ec3 100644
@@ -216,8 +216,10 @@ For `shared ring` connections it is as follows:
 |           | by xenstored to communicate with `domid`          |
 |           |                                                   |
 
-Since the ABI guarantees that entry 1 in `domid`'s grant table will always
-contain the GFN of the shared page.
+The GFN of the shared page is not preserved because the ABI reserves
+entry 1 in `domid`'s grant table to point to the xenstore shared page.
+Note there is no guarantee the page will still be valid at the time of
+the restore because a domain can revoke the permission.
 
 For `socket` connections it is as follows:
 
@@ -398,7 +400,7 @@ A node permission specifier has the following format:
 |         |                                                     |
 | `domid` | The domain-id to which the permission relates       |
 
-Note that perm1 defines the domain owning the code. See [4] for more
+Note that perm1 defines the domain owning the node. See [4] for more
 explanation of node permissions.
 
 * * *
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Julien Grall

From: Julien Grall <[email protected]>

It is not very clear the shared page adddress is not contained in the connection record. Additionally, it is misleading to say the grant will always point to the share paged as a domain is free to revoke the permission. The restore code would need to make sure it doesn't fail/crash if this is happening.

The sentence is now replaced with a paragraph explaining why the GFN is not preserved and that the grant is not guarantee to exist during restore.

Quoted 5 lines

Take the opportunity to replace "code" with "node" when description the permission.

Juergen

#2 lore raw
In reply to Julien Grall

Julien Grall writes ("[PATCH for-4.15?] docs/design: Update xenstore-migration.md"):

Quoted 12 lines

From: Julien Grall <[email protected]>

It is not very clear the shared page adddress is not contained in the connection record. Additionally, it is misleading to say the grant will always point to the share paged as a domain is free to revoke the permission. The restore code would need to make sure it doesn't fail/crash if this is happening.

The sentence is now replaced with a paragraph explaining why the GFN is not preserved and that the grant is not guarantee to exist during restore.

Quoted 5 lines

Take the opportunity to replace "code" with "node" when description the permission.

#3 lore raw

Hi Ian,

Quoted 13 lines · Ian Jackson

Julien Grall writes ("[PATCH for-4.15?] docs/design: Update xenstore-migration.md"):

Quoted 12 lines

From: Julien Grall <[email protected]>

It is not very clear the shared page adddress is not contained in the connection record. Additionally, it is misleading to say the grant will always point to the share paged as a domain is free to revoke the permission. The restore code would need to make sure it doesn't fail/crash if this is happening.

The sentence is now replaced with a paragraph explaining why the GFN is not preserved and that the grant is not guarantee to exist during restore.

Quoted 7 lines
Quoted 5 lines

Take the opportunity to replace "code" with "node" when description the permission.

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

Cheers,

Signature · 1 line
Julien Grall