Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fb56dbb31c4738a3918db81fd24da732ce3b4ae6
Commit:     fb56dbb31c4738a3918db81fd24da732ce3b4ae6
Parent:     d23087847184a7417fc69bdfaa8a32834b447bef
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 2 10:50:06 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 17:53:16 2008 +0200

    KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM
    
    Currently, make headers_check barfs due to <asm/kvm.h>, which <linux/kvm.h>
    includes, not existing.  Rather than add a zillion <asm/kvm.h>s, export 
kvm.h
    only if the arch actually supports it.
    
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
---
 arch/x86/Kconfig     |    1 +
 drivers/kvm/Kconfig  |    7 +++++--
 include/linux/Kbuild |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index fb3eea3..d289cfc 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -107,6 +107,7 @@ config ARCH_SUPPORTS_OPROFILE
        bool
        default y
 
+select HAVE_KVM
 
 config ZONE_DMA32
        bool
diff --git a/drivers/kvm/Kconfig b/drivers/kvm/Kconfig
index 6569206..c83e1c9 100644
--- a/drivers/kvm/Kconfig
+++ b/drivers/kvm/Kconfig
@@ -1,9 +1,12 @@
 #
 # KVM configuration
 #
+config HAVE_KVM
+       bool
+
 menuconfig VIRTUALIZATION
        bool "Virtualization"
-       depends on X86
+       depends on HAVE_KVM || X86
        default y
        ---help---
          Say Y here to get to see options for using your Linux host to run 
other
@@ -16,7 +19,7 @@ if VIRTUALIZATION
 
 config KVM
        tristate "Kernel-based Virtual Machine (KVM) support"
-       depends on X86 && EXPERIMENTAL
+       depends on HAVE_KVM && EXPERIMENTAL
        select PREEMPT_NOTIFIERS
        select ANON_INODES
        ---help---
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index c263a69..85b2482 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -255,7 +255,7 @@ unifdef-y += kd.h
 unifdef-y += kernelcapi.h
 unifdef-y += kernel.h
 unifdef-y += keyboard.h
-unifdef-y += kvm.h
+unifdef-$(CONFIG_HAVE_KVM) += kvm.h
 unifdef-y += llc.h
 unifdef-y += loop.h
 unifdef-y += lp.h
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to