Skip to contentSkip to conversation

xen: oprofile/nmi_int.c: Drop unwanted sexual reference

PATCH Superseded Ian Jackson 5 participants 5 messages Jul 12, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: oprofile/nmi_int.c: Drop unwanted sexual reference

This is not really very nice.

I don't understand the technical details here but violence' is probably fair. The word violence' is often used metaphorically in a technical context so I think it's probably OK for use in this way.

IMO this patch should be backported to all maintained trees.

---
 xen/arch/x86/oprofile/nmi_int.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/oprofile/nmi_int.c +1 -1
index d8f5230..cc36827 100644
@@ -182,7 +182,7 @@ int nmi_reserve_counters(void)
 	if (!allocate_msrs())
 		return -ENOMEM;
 
-	/* We walk a thin line between law and rape here.
+	/* We walk a thin line between law and violence here.
 	 * We need to be careful to install our NMI handler
 	 * without actually triggering any NMIs as this will
 	 * break the core code horrifically.
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 18 lines · Ian Jackson

This is not really very nice.

I don't understand the technical details here but violence' is probably fair. The word violence' is often used metaphorically in a technical context so I think it's probably OK for use in this way.

IMO this patch should be backported to all maintained trees.

---
 xen/arch/x86/oprofile/nmi_int.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/oprofile/nmi_int.c +0 -0
index d8f5230..cc36827 100644

xen/arch/x86/oprofile/nmi_int.c int nmi_reserve_counters(void) · line 185

Quoted 5 lines
xen/arch/x86/oprofile/nmi_int.c +1 -1
@@ -182,7 +182,7 @@ int nmi_reserve_counters(void)
 	if (!allocate_msrs())
 		return -ENOMEM;
 
-	/* We walk a thin line between law and rape here.
+	/* We walk a thin line between law and violence here.

IMHO this line doesn't have much value in itself. The rest of this comment block is pretty clear what it wants to convey.

Wei.

Quoted 11 lines
xen/arch/x86/oprofile/nmi_int.c +0 -0
 	 * We need to be careful to install our NMI handler
 	 * without actually triggering any NMIs as this will
 	 * break the core code horrifically.
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw

Wei Liu writes ("Re: [Xen-devel] [PATCH] xen: oprofile/nmi_int.c: Drop unwanted sexual reference"):

Quoted 6 lines · Ian Jackson

xen/arch/x86/oprofile/nmi_int.c int nmi_reserve_counters(void) · line 185

Quoted 2 lines
xen/arch/x86/oprofile/nmi_int.c +1 -1
-	/* We walk a thin line between law and rape here.
+	/* We walk a thin line between law and violence here.

IMHO this line doesn't have much value in itself. The rest of this comment block is pretty clear what it wants to convey.

Lars expressed a similar sentiment on irc. I would be very happy to delete it entirely. I will defer to the hypervisor maintainers on that.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 11 lines · Ian Jackson

Wei Liu writes ("Re: [Xen-devel] [PATCH] xen: oprofile/nmi_int.c: Drop unwanted sexual reference"):

Quoted 6 lines · Ian Jackson

xen/arch/x86/oprofile/nmi_int.c int nmi_reserve_counters(void) · line 185

Quoted 2 lines
xen/arch/x86/oprofile/nmi_int.c +1 -1
-   /* We walk a thin line between law and rape here.
+   /* We walk a thin line between law and violence here.

IMHO this line doesn't have much value in itself. The rest of this comment block is pretty clear what it wants to convey.

Lars expressed a similar sentiment on irc. I would be very happy to delete it entirely. I will defer to the hypervisor maintainers on that.

+1 for deleting it. Technically it requires an x86 maintianer's ack.

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
In reply to Wei Liu
Quoted 26 lines · Wei Liu
Quoted 21 lines · Ian Jackson

This is not really very nice.

I don't understand the technical details here but violence' is probably fair. The word violence' is often used metaphorically in a technical context so I think it's probably OK for use in this way.

IMO this patch should be backported to all maintained trees.

---
xen/arch/x86/oprofile/nmi_int.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/oprofile/nmi_int.c +0 -0
index d8f5230..cc36827 100644
@@ -182,7 +182,7 @@ int nmi_reserve_counters(void)
 	if (!allocate_msrs())
 		return -ENOMEM;
 
Quoted 8 lines

xen/arch/x86/oprofile/nmi_int.c int nmi_reserve_counters(void) · line 185

Quoted 2 lines
xen/arch/x86/oprofile/nmi_int.c +1 -1
-	/* We walk a thin line between law and rape here.
+	/* We walk a thin line between law and violence here.

IMHO this line doesn't have much value in itself. The rest of this comment block is pretty clear what it wants to convey.

Wei.

I agree: we should delete or replace with "ATTENTION:". The following section part of the comment is what is important

Quoted 3 lines

xen/arch/x86/oprofile/nmi_int.c int nmi_reserve_counters(void)

Quoted 3 lines
xen/arch/x86/oprofile/nmi_int.c +0 -0
 	 * We need to be careful to install our NMI handler
 	 * without actually triggering any NMIs as this will
 	 * break the core code horrifically

Lars

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel