Skip to contentSkip to conversation

include/hw/xen: Use more inclusive language in comment

PATCH In review Thomas Huth 6 participants 8 messages Nov 9, 2023 – Nov 10, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/hw/xen: Use more inclusive language in comment

Let's improve the wording here.

---
 include/hw/xen/interface/hvm/params.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/xen/interface/hvm/params.h +1 -1
index a22b4ed45d..9bcb40284c 100644
@@ -255,7 +255,7 @@
  * Note that 'mixed' mode has not been evaluated for safety from a
  * security perspective.  Before using this mode in a
  * security-critical environment, each subop should be evaluated for
- * safety, with unsafe subops blacklisted in XSM.
+ * safety, with unsafe subops blocked in XSM.
  */
 #define HVM_PARAM_ALTP2M       35
 #define XEN_ALTP2M_disabled      0
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Thomas Huth

Let's improve the wording here.

---
 include/hw/xen/interface/hvm/params.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#3 lore raw
In reply to Thomas Huth
Quoted 3 lines · Thomas Huth

Let's improve the wording here.

Thankyou for the patch, but this is a verbatim copy of a set of Xen headers.

Would you mind submitting a correction to xen.git:xen/include/public/hvm/params.h first, and then syncing the result back into Qemu?

~Andrew

Acked-by on v1 1/1
#4 lore raw
In reply to Thomas Huth
Quoted 3 lines · Thomas Huth

Let's improve the wording here.

Absolutely, but please can we change it in Xen first because these headers are a direct import.

Quoted 18 lines

---
 include/hw/xen/interface/hvm/params.h | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/xen/interface/hvm/params.h +1 -1
index a22b4ed45d..9bcb40284c 100644
@@ -255,7 +255,7 @@
   * Note that 'mixed' mode has not been evaluated for safety from a
   * security perspective.  Before using this mode in a
   * security-critical environment, each subop should be evaluated for
- * safety, with unsafe subops blacklisted in XSM.
+ * safety, with unsafe subops blocked in XSM.
   */
  #define HVM_PARAM_ALTP2M       35
  #define XEN_ALTP2M_disabled      0
#5 lore raw
In reply to Thomas Huth

include/hw/xen/interface/hvm/params.h line 258

Quoted 8 lines · Thomas Huth
include/hw/xen/interface/hvm/params.h +1 -1
@@ -255,7 +255,7 @@
  * Note that 'mixed' mode has not been evaluated for safety from a
  * security perspective.  Before using this mode in a
  * security-critical environment, each subop should be evaluated for
- * safety, with unsafe subops blacklisted in XSM.
+ * safety, with unsafe subops blocked in XSM.

To avoid another round trip when you send the patch against xen.git, as already asked for by others, I'd like to point out that the wording change isn't describing things sufficiently similarly: "blocked" reads as if XSM would do so all by itself, whereas "blacklisted" has an indication that something needs to be done for XSM to behave in the intended way. Minimally I'd suggest "suitably blocked via", but perhaps yet better wording can be thought of.

Jan

PS: Personally I'm against such avoiding of certain words. Them being misused is not really a justification. New wording (perhaps not specifically here, but considering the underlying wider theme) is going to be misused as well, leading to the need to come up with yet different wording, and so on.

#6 lore raw
Quoted 17 lines · Jan Beulich

include/hw/xen/interface/hvm/params.h line 258

Quoted 8 lines · Thomas Huth
include/hw/xen/interface/hvm/params.h +1 -1
@@ -255,7 +255,7 @@
   * Note that 'mixed' mode has not been evaluated for safety from a
   * security perspective.  Before using this mode in a
   * security-critical environment, each subop should be evaluated for
- * safety, with unsafe subops blacklisted in XSM.
+ * safety, with unsafe subops blocked in XSM.

To avoid another round trip when you send the patch against xen.git, as already asked for by others, I'd like to point out that the wording change isn't describing things sufficiently similarly: "blocked" reads as if XSM would do so all by itself, whereas "blacklisted" has an indication that something needs to be done for XSM to behave in the intended way. Minimally I'd suggest "suitably blocked via", but perhaps yet better wording can be thought of.

Ok, could then please someone from you Xen guys get this fixed with appropriate wording in the xen.git repo? I never checked out that repo before and before I now spend hours and hours to figure out how to contribute a patch to Xen, just to replace a single word, it's way easier if someone with pre-existing Xen experience is taking care of this.

Thanks,
Thomas

#7 lore raw
In reply to Jan Beulich
Quoted 17 lines · Jan Beulich

include/hw/xen/interface/hvm/params.h line 258

Quoted 8 lines · Thomas Huth
include/hw/xen/interface/hvm/params.h +1 -1
@@ -255,7 +255,7 @@
   * Note that 'mixed' mode has not been evaluated for safety from a
   * security perspective.  Before using this mode in a
   * security-critical environment, each subop should be evaluated for
- * safety, with unsafe subops blacklisted in XSM.
+ * safety, with unsafe subops blocked in XSM.

To avoid another round trip when you send the patch against xen.git, as already asked for by others, I'd like to point out that the wording change isn't describing things sufficiently similarly: "blocked" reads as if XSM would do so all by itself, whereas "blacklisted" has an indication that something needs to be done for XSM to behave in the intended way. Minimally I'd suggest "suitably blocked via", but perhaps yet better wording can be thought of.

"denylist" is often used and works as a suitable replacement in most use cases.