Skip to contentSkip to conversation

xen: make it possible to disable XEN_TMEM

RFC PATCH In review Vitaly Kuznetsov 2 participants 5 messages Oct 3, 2016 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 xen: make it possible to disable XEN_TMEM

XEN_TMEM config option has no prompt and it is enabled as module by default if CLEANCACHE or FRONTSWAP options are set with no way to disable it. The only in-tree user of the tmem interface is xen-selfballoon which can itself be disabled so it makes sense to make it possible to disable XEN_TMEM too. In theory, both these options could be unified under the XEN_SELFBALLOONING but other (out-of-tree) users of the tmem interface may exist and someone may want to keep them supported without enabling XEN_SELFBALLOONING.

---
- I don't know much about tmem and its users thus RFC.

---
 drivers/xen/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +1 -1
index f15bb3b7..0ea1df8 100644
@@ -166,7 +166,7 @@ config SWIOTLB_XEN
 	select SWIOTLB
 
 config XEN_TMEM
-	tristate
+	tristate "Transcendent Memory support for Xen"
 	depends on !ARM && !ARM64
 	default m if (CLEANCACHE || FRONTSWAP)
 	help
Signature · 1 line
2.7.4
#1 lore raw
Quoted 3 lines · Vitaly Kuznetsov

XEN_TMEM config option has no prompt and it is enabled as module by default if CLEANCACHE or FRONTSWAP options are set with no way to disable it. The only in-tree user of the tmem interface is xen-selfballoon which

And if CONFIG_XEN=y .

Quoted 1 line

can itself be disabled so it makes sense to make it possible to disable

During boot-time with arguments.

Quoted 4 lines

XEN_TMEM too. In theory, both these options could be unified under the XEN_SELFBALLOONING but other (out-of-tree) users of the tmem interface may exist and someone may want to keep them supported without enabling XEN_SELFBALLOONING.

I think going the route of XEN_SELFBALLOONING may be better.

Quoted 29 lines

---
- I don't know much about tmem and its users thus RFC.

---
 drivers/xen/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +1 -1
index f15bb3b7..0ea1df8 100644
@@ -166,7 +166,7 @@ config SWIOTLB_XEN
 	select SWIOTLB
 
 config XEN_TMEM
-	tristate
+	tristate "Transcendent Memory support for Xen"
 	depends on !ARM && !ARM64
 	default m if (CLEANCACHE || FRONTSWAP)
 	help
Signature · 7 lines
2.7.4


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

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

#2 lore raw
In reply to Vitaly Kuznetsov
Quoted 3 lines · Vitaly Kuznetsov

XEN_TMEM config option has no prompt and it is enabled as module by default if CLEANCACHE or FRONTSWAP options are set with no way to disable it. The only in-tree user of the tmem interface is xen-selfballoon which

And if CONFIG_XEN=y .

Quoted 1 line

can itself be disabled so it makes sense to make it possible to disable

During boot-time with arguments.

Quoted 4 lines

XEN_TMEM too. In theory, both these options could be unified under the XEN_SELFBALLOONING but other (out-of-tree) users of the tmem interface may exist and someone may want to keep them supported without enabling XEN_SELFBALLOONING.

I think going the route of XEN_SELFBALLOONING may be better.

Quoted 29 lines

---
- I don't know much about tmem and its users thus RFC.

---
 drivers/xen/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +1 -1
index f15bb3b7..0ea1df8 100644
@@ -166,7 +166,7 @@ config SWIOTLB_XEN
 	select SWIOTLB
 
 config XEN_TMEM
-	tristate
+	tristate "Transcendent Memory support for Xen"
 	depends on !ARM && !ARM64
 	default m if (CLEANCACHE || FRONTSWAP)
 	help
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Vitaly Kuznetsov

XEN_TMEM config option has no prompt and it is enabled as module by default if CLEANCACHE or FRONTSWAP options are set with no way to disable it. The only in-tree user of the tmem interface is xen-selfballoon which

And if CONFIG_XEN=y .

Yes, of course)

Quoted 3 lines
Quoted 1 line

can itself be disabled so it makes sense to make it possible to disable

During boot-time with arguments.

I see, I rather meant we need a way to disable building the module, not just loading it.

Quoted 6 lines
Quoted 4 lines

XEN_TMEM too. In theory, both these options could be unified under the XEN_SELFBALLOONING but other (out-of-tree) users of the tmem interface may exist and someone may want to keep them supported without enabling XEN_SELFBALLOONING.

I think going the route of XEN_SELFBALLOONING may be better.

Ok, if you say so)

Quoted 29 lines
Quoted 29 lines

---
- I don't know much about tmem and its users thus RFC.

---
 drivers/xen/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +1 -1
index f15bb3b7..0ea1df8 100644
@@ -166,7 +166,7 @@ config SWIOTLB_XEN
 	select SWIOTLB
 
 config XEN_TMEM
-	tristate
+	tristate "Transcendent Memory support for Xen"
 	depends on !ARM && !ARM64
 	default m if (CLEANCACHE || FRONTSWAP)
 	help
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Signature · 6 lines
  Vitaly

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#4 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Vitaly Kuznetsov

XEN_TMEM config option has no prompt and it is enabled as module by default if CLEANCACHE or FRONTSWAP options are set with no way to disable it. The only in-tree user of the tmem interface is xen-selfballoon which

And if CONFIG_XEN=y .

Yes, of course)

Quoted 3 lines
Quoted 1 line

can itself be disabled so it makes sense to make it possible to disable

During boot-time with arguments.

I see, I rather meant we need a way to disable building the module, not just loading it.

Quoted 6 lines
Quoted 4 lines

XEN_TMEM too. In theory, both these options could be unified under the XEN_SELFBALLOONING but other (out-of-tree) users of the tmem interface may exist and someone may want to keep them supported without enabling XEN_SELFBALLOONING.

I think going the route of XEN_SELFBALLOONING may be better.

Ok, if you say so)

Quoted 29 lines
Quoted 29 lines

---
- I don't know much about tmem and its users thus RFC.

---
 drivers/xen/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +1 -1
index f15bb3b7..0ea1df8 100644
@@ -166,7 +166,7 @@ config SWIOTLB_XEN
 	select SWIOTLB
 
 config XEN_TMEM
-	tristate
+	tristate "Transcendent Memory support for Xen"
 	depends on !ARM && !ARM64
 	default m if (CLEANCACHE || FRONTSWAP)
 	help
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Signature · 1 line
  Vitaly