Skip to contentSkip to conversation

xen/privcmd: make option visible in Kconfig

PATCH Applied Juergen Gross 4 participants 7 messages Nov 16, 2021 – Nov 17, 2021 Xen hypervisor interface

lore
Share & tools
lore

Juergen Gross

author maintainer
#0 lore raw

PATCH 1/1 xen/privcmd: make option visible in Kconfig

This configuration option provides a misc device as an API to userspace. Make this API usable without having to select the module as a transitive dependency.

This also fixes an issue where localyesconfig would select CONFIG_XEN_PRIVCMD=m because it was not visible and defaulted to building as module.

---
 drivers/xen/Kconfig | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/xen/Kconfig +6 -1
index a1b11c62da9e..a2e91d3ca372 100644
@@ -259,9 +259,14 @@ config XEN_SCSI_BACKEND
 	  if guests need generic access to SCSI devices.
 
 config XEN_PRIVCMD
-	tristate
+	tristate "Xen hypercall passthrough driver"
 	depends on XEN
 	default m
+	help
+	  The hypercall passthrough driver allows user land programs to perform
+	  Xen hypercalls. This driver is normally required for systems running
+	  as Dom0 to perform privileged operations, but in some disaggregated
+	  Xen setups this driver might be needed for other domains, too.
 
 config XEN_ACPI_PROCESSOR
 	tristate "Xen ACPI processor"
Signature · 1 line
2.26.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Juergen Gross

This configuration option provides a misc device as an API to userspace. Make this API usable without having to select the module as a transitive dependency.

This also fixes an issue where localyesconfig would select CONFIG_XEN_PRIVCMD=m because it was not visible and defaulted to building as module.

drivers/xen/Kconfig config XEN_SCSI_BACKEND · line 266

Quoted 12 lines
drivers/xen/Kconfig +3 -1
@@ -259,9 +259,14 @@ config XEN_SCSI_BACKEND
 	  if guests need generic access to SCSI devices.
 
 config XEN_PRIVCMD
-	tristate
+	tristate "Xen hypercall passthrough driver"
 	depends on XEN
 	default m
+	help
+	  The hypercall passthrough driver allows user land programs to perform

Maybe worth adding "privileged" here? Albeit of course that's different from the use of the word ...

drivers/xen/Kconfig config XEN_SCSI_BACKEND · line 268

Quoted 2 lines
drivers/xen/Kconfig +2 -0
+	  Xen hypercalls. This driver is normally required for systems running
+	  as Dom0 to perform privileged operations, but in some disaggregated

... here, so there'd be a small risk of confusion.

Jan

Quoted 5 lines
drivers/xen/Kconfig +1 -0
+	  Xen setups this driver might be needed for other domains, too.
 
 config XEN_ACPI_PROCESSOR
 	tristate "Xen ACPI processor"
author maintainer
#2 lore raw
Quoted 19 lines · Jan Beulich
Quoted 10 lines · Juergen Gross

This configuration option provides a misc device as an API to userspace. Make this API usable without having to select the module as a transitive dependency.

This also fixes an issue where localyesconfig would select CONFIG_XEN_PRIVCMD=m because it was not visible and defaulted to building as module.

Quoted 5 lines
drivers/xen/Kconfig +0 -0
@@ -259,9 +259,14 @@ config XEN_SCSI_BACKEND
  	  if guests need generic access to SCSI devices.
 
Quoted 10 lines

drivers/xen/Kconfig config XEN_SCSI_BACKEND · line 266

Quoted 7 lines
drivers/xen/Kconfig +3 -1
  config XEN_PRIVCMD
-	tristate
+	tristate "Xen hypercall passthrough driver"
  	depends on XEN
  	default m
+	help
+	  The hypercall passthrough driver allows user land programs to perform

Maybe worth adding "privileged" here? Albeit of course that's different from the use of the word ...

I guess you mean "... allows privileged user programs ..." (another variant might be "The privileged hypercall passthrough ...")?

Juergen

#3 lore raw
Quoted 31 lines · Juergen Gross
Quoted 19 lines · Jan Beulich
Quoted 10 lines · Juergen Gross

This configuration option provides a misc device as an API to userspace. Make this API usable without having to select the module as a transitive dependency.

This also fixes an issue where localyesconfig would select CONFIG_XEN_PRIVCMD=m because it was not visible and defaulted to building as module.

Quoted 5 lines
drivers/xen/Kconfig +0 -0
@@ -259,9 +259,14 @@ config XEN_SCSI_BACKEND
  	  if guests need generic access to SCSI devices.
 
Quoted 10 lines

drivers/xen/Kconfig config XEN_SCSI_BACKEND · line 266

Quoted 7 lines
drivers/xen/Kconfig +3 -1
  config XEN_PRIVCMD
-	tristate
+	tristate "Xen hypercall passthrough driver"
  	depends on XEN
  	default m
+	help
+	  The hypercall passthrough driver allows user land programs to perform

Maybe worth adding "privileged" here? Albeit of course that's different from the use of the word ...

Quoted 2 lines

I guess you mean "... allows privileged user programs ..." (another variant might be "The privileged hypercall passthrough ...")?

The former, yes.

Jan

#4 lore raw
Quoted 14 lines · Jan Beulich
Quoted 13 lines · Juergen Gross
Quoted 12 lines · Jan Beulich

drivers/xen/Kconfig config XEN_SCSI_BACKEND · line 266

Quoted 8 lines · Juergen Gross

config XEN_PRIVCMD

drivers/xen/Kconfig +3 -1
-	tristate
+	tristate "Xen hypercall passthrough driver"
   	depends on XEN
   	default m
+	help
+	  The hypercall passthrough driver allows user land programs to perform

Maybe worth adding "privileged" here? Albeit of course that's different from the use of the word ...

Quoted 3 lines
Quoted 2 lines

I guess you mean "... allows privileged user programs ..." (another variant might be "The privileged hypercall passthrough ...")?

The former, yes.

I can apply with this change, no need to resend.

-boris

#5 lore raw
Quoted 13 lines · Boris Ostrovsky
Quoted 11 lines · Jan Beulich
Quoted 10 lines · Juergen Gross
Quoted 9 lines · Jan Beulich
Quoted 7 lines · Juergen Gross

      config XEN_PRIVCMD
-    tristate
+    tristate "Xen hypercall passthrough driver"
       depends on XEN
       default m
+    help
+      The hypercall passthrough driver allows user land programs to perform

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

Maybe worth adding "privileged" here? Albeit of course that's different from the use of the word ...

I guess you mean "... allows privileged user programs ..." (another variant might be "The privileged hypercall passthrough ...")?

The former, yes.

I can apply with this change, no need to resend.

Applied to for-linus-5.16c

-boris

Reviewed-by on v1 1/1
#6 lore raw
In reply to Juergen Gross

Thanks!

Quoted 36 lines · Juergen Gross

This configuration option provides a misc device as an API to userspace. Make this API usable without having to select the module as a transitive dependency.

This also fixes an issue where localyesconfig would select CONFIG_XEN_PRIVCMD=m because it was not visible and defaulted to building as module.

---
 drivers/xen/Kconfig | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/xen/Kconfig +6 -1
index a1b11c62da9e..a2e91d3ca372 100644
@@ -259,9 +259,14 @@ config XEN_SCSI_BACKEND
 	  if guests need generic access to SCSI devices.
 
 config XEN_PRIVCMD
-	tristate
+	tristate "Xen hypercall passthrough driver"
 	depends on XEN
 	default m
+	help
+	  The hypercall passthrough driver allows user land programs to perform
+	  Xen hypercalls. This driver is normally required for systems running
+	  as Dom0 to perform privileged operations, but in some disaggregated
+	  Xen setups this driver might be needed for other domains, too.
 
 config XEN_ACPI_PROCESSOR
 	tristate "Xen ACPI processor"
Signature · 1 line
2.26.2