[RFC 04/10] KVM: add KVM TMEM entries in the appropriate config menu entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Provide the ability to enable/disable any (future) KVM TMEM code.

Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
---
 arch/x86/kvm/Kconfig       |    1 +
 arch/x86/kvm/Makefile      |    2 ++
 arch/x86/kvm/tmem/Kconfig  |   16 ++++++++++++++++
 arch/x86/kvm/tmem/Makefile |    1 +
 4 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 arch/x86/kvm/tmem/Kconfig
 create mode 100644 arch/x86/kvm/tmem/Makefile

diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
index 1a7fe86..08d2249 100644
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -81,6 +81,7 @@ config KVM_MMU_AUDIT
 
 # OK, it's a little counter-intuitive to do this, but it puts it neatly under
 # the virtualization menu.
+source arch/x86/kvm/tmem/Kconfig
 source drivers/vhost/Kconfig
 source drivers/lguest/Kconfig
 
diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile
index 4f579e8..0df19bc 100644
--- a/arch/x86/kvm/Makefile
+++ b/arch/x86/kvm/Makefile
@@ -19,3 +19,5 @@ kvm-amd-y		+= svm.o
 obj-$(CONFIG_KVM)	+= kvm.o
 obj-$(CONFIG_KVM_INTEL)	+= kvm-intel.o
 obj-$(CONFIG_KVM_AMD)	+= kvm-amd.o
+
+obj-$(CONFIG_KVM_TMEM)	+= tmem/
diff --git a/arch/x86/kvm/tmem/Kconfig b/arch/x86/kvm/tmem/Kconfig
new file mode 100644
index 0000000..15d8301
--- /dev/null
+++ b/arch/x86/kvm/tmem/Kconfig
@@ -0,0 +1,16 @@
+#
+# KVM TMEM configuration
+#
+
+menuconfig KVM_TMEM
+	bool "TMEM support"
+	depends on KVM && ZCACHE
+	default n
+	---help---
+	This option provides the ability to use TMEM along with KVM, which provides
+	TMEM capabilities across multiple guests and (possible hosts).
+
+
+if KVM_TMEM
+
+endif # KVM_TMEM
diff --git a/arch/x86/kvm/tmem/Makefile b/arch/x86/kvm/tmem/Makefile
new file mode 100644
index 0000000..6812d46
--- /dev/null
+++ b/arch/x86/kvm/tmem/Makefile
@@ -0,0 +1 @@
+ccflags-y += -Idrivers/staging/zcache/
-- 
1.7.8.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux