Skip to contentSkip to conversation

xen: Make XEN_BACKEND selectable by DomU

PATCH Superseded Jason Andryuk 2 participants 5 messages Sep 20, 2018 Xen hypervisor interface

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Make XEN_BACKEND selectable by DomU

XEN_BACKEND doesn't actually depend on XEN_DOM0. DomUs can serve backends to other DomUs. One example is a service VM providing network backends.

The original Kconfig defaulted Dom0 to y and it could be disabled. DomU could not select the option. With the new Kconfig, we default y for Dom0 and n for DomU. Either can then toggle the selection.

---
OpenXT runs network backends in a network service DomU that shares out PCI NICs.

 drivers/xen/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/xen/Kconfig +1 -2
index b459edfacff3..af1bf99318c6 100644
@@ -101,8 +101,7 @@ config XEN_DEV_EVTCHN
 
 config XEN_BACKEND
 	bool "Backend driver support"
-	depends on XEN_DOM0
-	default y
+	default y if XEN_DOM0
 	help
 	  Support for backend device drivers that provide I/O services
 	  to other virtual machines.
Signature · 1 line
2.17.1
#1 lore raw

drivers/xen/Kconfig config XEN_DEV_EVTCHN · line 104

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 20.09.18 at 16:32, <[email protected]> wrote:
drivers/xen/Kconfig +1 -2
@@ -101,8 +101,7 @@ config XEN_DEV_EVTCHN
 
 config XEN_BACKEND
 	bool "Backend driver support"
-	depends on XEN_DOM0
-	default y
+	default y if XEN_DOM0

Why not the simpler "default XEN_DOM0"?

Jan

#4 lore raw
In reply to Jason Andryuk

drivers/xen/Kconfig config XEN_DEV_EVTCHN · line 104

Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 20.09.18 at 16:32, <[email protected]> wrote:
drivers/xen/Kconfig +1 -2
@@ -101,8 +101,7 @@ config XEN_DEV_EVTCHN
 
 config XEN_BACKEND
 	bool "Backend driver support"
-	depends on XEN_DOM0
-	default y
+	default y if XEN_DOM0

Why not the simpler "default XEN_DOM0"?

Jan

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

#2 lore raw
In reply to Jan Beulich
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines · On 20.09.18 at 16:32, <[email protected]> wrote:
drivers/xen/Kconfig +0 -0
@@ -101,8 +101,7 @@ config XEN_DEV_EVTCHN
 
Quoted 7 lines

drivers/xen/Kconfig config XEN_DEV_EVTCHN · line 104

Quoted 5 lines
drivers/xen/Kconfig +1 -2
 config XEN_BACKEND
      bool "Backend driver support"
-     depends on XEN_DOM0
-     default y
+     default y if XEN_DOM0

Why not the simpler "default XEN_DOM0"?

I didn't realize you could do that. :) Yes, that's nicer.

Thanks,
Jason

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

#3 lore raw
In reply to Jan Beulich
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines · On 20.09.18 at 16:32, <[email protected]> wrote:
drivers/xen/Kconfig +0 -0
@@ -101,8 +101,7 @@ config XEN_DEV_EVTCHN
 
Quoted 7 lines

drivers/xen/Kconfig config XEN_DEV_EVTCHN · line 104

Quoted 5 lines
drivers/xen/Kconfig +1 -2
 config XEN_BACKEND
      bool "Backend driver support"
-     depends on XEN_DOM0
-     default y
+     default y if XEN_DOM0

Why not the simpler "default XEN_DOM0"?

I didn't realize you could do that. :) Yes, that's nicer.

Thanks,
Jason