xen/privcmd: make option visible in Kconfig
Juergen Gross
maintainerPATCH 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
@@ -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
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=mbecause it was not visible and defaulted to building as module.Based-on-patch-by Thomas Weißschuh <[email protected]>Signed-off-by Juergen Gross <[email protected]>
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"
Juergen Gross
maintainerQuoted 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=mbecause it was not visible and defaulted to building as module.Based-on-patch-by Thomas Weißschuh <[email protected]>Signed-off-by Juergen Gross <[email protected]>Reviewed-by Jan Beulich <[email protected]>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
-1config XEN_PRIVCMD - tristate + tristate "Xen hypercall passthrough driver" depends on XEN default m + help + The hypercall passthrough driver allows user land programs to performMaybe 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
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=mbecause it was not visible and defaulted to building as module.Based-on-patch-by Thomas Weißschuh <[email protected]>Signed-off-by Juergen Gross <[email protected]>Reviewed-by Jan Beulich <[email protected]>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
-1config XEN_PRIVCMD - tristate + tristate "Xen hypercall passthrough driver" depends on XEN default m + help + The hypercall passthrough driver allows user land programs to performMaybe 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
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_PRIVCMDdrivers/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 performMaybe 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
Boris Ostrovsky
AppliedQuoted 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
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=mbecause it was not visible and defaulted to building as module.Based-on-patch-by Thomas Weißschuh <[email protected]>Signed-off-by Juergen Gross <[email protected]>--- drivers/xen/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/xen/Kconfig +6
-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 + 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