]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
KVM: Move common KVM Kconfig items to new file virt/kvm/Kconfig
authorAvi Kivity <avi@redhat.com>
Thu, 21 May 2009 13:45:19 +0000 (16:45 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:41 +0000 (08:32 +0300)
Reduce Kconfig code duplication.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/Kconfig
arch/powerpc/kvm/Kconfig
arch/s390/kvm/Kconfig
arch/x86/kvm/Kconfig
virt/kvm/Kconfig [new file with mode: 0644]

index 64d5209378749ff7175f8218fdbb546ee6310315..f922bbba37974657060182137487d49a65cf0285 100644 (file)
@@ -1,12 +1,8 @@
 #
 # KVM configuration
 #
-config HAVE_KVM
-       bool
 
-config HAVE_KVM_IRQCHIP
-       bool
-       default y
+source "virt/kvm/Kconfig"
 
 menuconfig VIRTUALIZATION
        bool "Virtualization"
@@ -28,6 +24,7 @@ config KVM
        depends on PCI
        select PREEMPT_NOTIFIERS
        select ANON_INODES
+       select HAVE_KVM_IRQCHIP
        ---help---
          Support hosting fully virtualized guest machines using hardware
          virtualization extensions.  You will need a fairly recent
index 5a152a52796f171641c5c8edfe3d1a92724d6cb1..46019dccce1cc10b372ad0a3e9f0c226ba88c353 100644 (file)
@@ -2,8 +2,7 @@
 # KVM configuration
 #
 
-config HAVE_KVM_IRQCHIP
-       bool
+source "virt/kvm/Kconfig"
 
 menuconfig VIRTUALIZATION
        bool "Virtualization"
index 3e260b7e37b2ce58578e0fbf6ce369b738de5df6..ad75ce33be12664d7934626f9b2af58f85792e47 100644 (file)
@@ -1,11 +1,7 @@
 #
 # KVM configuration
 #
-config HAVE_KVM
-       bool
-
-config HAVE_KVM_IRQCHIP
-       bool
+source "virt/kvm/Kconfig"
 
 menuconfig VIRTUALIZATION
        bool "Virtualization"
index 8600a09e0c6c5cca00331605a92045d34268133b..939b1cb9c5b3656980ecd6d48ff0c2d69818e033 100644 (file)
@@ -1,12 +1,8 @@
 #
 # KVM configuration
 #
-config HAVE_KVM
-       bool
 
-config HAVE_KVM_IRQCHIP
-       bool
-       default y
+source "virt/kvm/Kconfig"
 
 menuconfig VIRTUALIZATION
        bool "Virtualization"
@@ -29,6 +25,7 @@ config KVM
        select PREEMPT_NOTIFIERS
        select MMU_NOTIFIER
        select ANON_INODES
+       select HAVE_KVM_IRQCHIP
        ---help---
          Support hosting fully virtualized guest machines using hardware
          virtualization extensions.  You will need a fairly recent
diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig
new file mode 100644 (file)
index 0000000..79e83fc
--- /dev/null
@@ -0,0 +1,7 @@
+# KVM common configuration items and defaults
+
+config HAVE_KVM
+       bool
+
+config HAVE_KVM_IRQCHIP
+       bool