Skip to contentSkip to conversation

public/gnttab: relax v2 recommendation

PATCH In review Jan Beulich 2 participants 3 messages Nov 15, 2021 – Nov 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 public/gnttab: relax v2 recommendation

With there being a way to disable v2 support, telling new guests to use v2 exclusively is not a good suggestion.

---
v2: s/be able to fall back/default/.

xen/include/public/grant_table.h +3 -2
@@ -121,8 +121,9 @@ typedef uint32_t grant_ref_t;
  */
 
 /*
- * Version 1 of the grant table entry structure is maintained purely
- * for backwards compatibility.  New guests should use version 2.
+ * Version 1 of the grant table entry structure is maintained largely for
+ * backwards compatibility.  New guests are recommended to support using
+ * version 2 to overcome version 1 limitations, but to default to version 1.
  */
 #if __XEN_INTERFACE_VERSION__ < 0x0003020a
 #define grant_entry_v1 grant_entry
#1 lore raw

[4.16?] Re: [PATCH v2] public/gnttab: relax v2 recommendation

Quoted 12 lines · Jan Beulich

With there being a way to disable v2 support, telling new guests to use v2 exclusively is not a good suggestion.

---
v2: s/be able to fall back/default/.

xen/include/public/grant_table.h +0 -0
@@ -121,8 +121,9 @@ typedef uint32_t grant_ref_t;
  */

xen/include/public/grant_table.h typedef uint32_t grant_ref_t; · line 129

Quoted 10 lines
xen/include/public/grant_table.h +3 -2
 
 /*
- * Version 1 of the grant table entry structure is maintained purely
- * for backwards compatibility.  New guests should use version 2.
+ * Version 1 of the grant table entry structure is maintained largely for
+ * backwards compatibility.  New guests are recommended to support using
+ * version 2 to overcome version 1 limitations, but to default to version 1.
  */
 #if __XEN_INTERFACE_VERSION__ < 0x0003020a
 #define grant_entry_v1 grant_entry

This being a comment only change (and hence close to zero risk) I wonder whether this wouldn't still be appropriate for 4.16. I'm sorry for not having remembered earlier to submit v2 of this.

Jan

#2 lore raw
In reply to Jan Beulich

Jan Beulich writes ("[PATCH v2] public/gnttab: relax v2 recommendation"):

Quoted 5 lines

With there being a way to disable v2 support, telling new guests to use v2 exclusively is not a good suggestion.

This is a just a comment change and AIUI the recommendation ought to be the same for all relevant versions.

We should consider backporting too.

Ian.