Skip to contentSkip to conversation

xen/pvcalls: backend can be a module

PATCH Applied Jan Beulich 3 participants 3 messages Sep 7, 2021 – Sep 14, 2021 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/pvcalls: backend can be a module

It's not clear to me why only the frontend has been tristate. Switch the backend to be, too.

drivers/xen/Kconfig +1 -1
@@ -214,7 +214,7 @@ config XEN_PVCALLS_FRONTEND
 	  implements them.
 
 config XEN_PVCALLS_BACKEND
-	bool "XEN PV Calls backend driver"
+	tristate "XEN PV Calls backend driver"
 	depends on INET && XEN && XEN_BACKEND
 	help
 	  Experimental backend for the Xen PV Calls protocol
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jan Beulich

It's not clear to me why only the frontend has been tristate. Switch the backend to be, too.

Actually although the frontend is a tristate, it cannot really work as a module. Specifically see pvcalls_stream_ops in the enabling patch (still not upstream):

https://github.com/lf-edge/runx/blob/master/kernel/patches/0001-patch-pvcalls_enable.patch

So I had to change tristate to bool for XEN_PVCALLS_FRONTEND in our internal kernel tree.

That said, the PVCalls backend could very well be a module and technically I don't see any reasons why not. So:

Quoted 12 lines
drivers/xen/Kconfig +1 -1
@@ -214,7 +214,7 @@ config XEN_PVCALLS_FRONTEND
 	  implements them.
 
 config XEN_PVCALLS_BACKEND
-	bool "XEN PV Calls backend driver"
+	tristate "XEN PV Calls backend driver"
 	depends on INET && XEN && XEN_BACKEND
 	help
 	  Experimental backend for the Xen PV Calls protocol