From: Sasha Levin Subject: [RFC 04/10] KVM: add KVM TMEM entries in the appropriate config menu entry Date: Wed, 6 Jun 2012 13:00:12 +0200 Message-ID: <1338980418-2519-4-git-send-email-levinsasha928@gmail.com> References: <1338980418-2519-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, Sasha Levin To: avi@redhat.com, mtosatti@redhat.com, gregkh@linuxfoundation.org, sjenning@linux.vnet.ibm.com, dan.magenheimer@oracle.com, konrad.wilk@oracle.com Return-path: Received: from mail-ob0-f174.google.com ([209.85.214.174]:45091 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006Ab2FFK7e (ORCPT ); Wed, 6 Jun 2012 06:59:34 -0400 Received: by mail-ob0-f174.google.com with SMTP id tb18so10130959obb.19 for ; Wed, 06 Jun 2012 03:59:34 -0700 (PDT) In-Reply-To: <1338980418-2519-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Provide the ability to enable/disable any (future) KVM TMEM code. Signed-off-by: Sasha Levin --- 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