Skip to content

Commit

Permalink
KVM: Move common KVM Kconfig items to new file virt/kvm/Kconfig
Browse files Browse the repository at this point in the history
Reduce Kconfig code duplication.

Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
avikivity committed Sep 10, 2009
1 parent 787ff73 commit 0ba12d1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
7 changes: 2 additions & 5 deletions arch/ia64/kvm/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions arch/powerpc/kvm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# KVM configuration
#

config HAVE_KVM_IRQCHIP
bool
source "virt/kvm/Kconfig"

menuconfig VIRTUALIZATION
bool "Virtualization"
Expand Down
6 changes: 1 addition & 5 deletions arch/s390/kvm/Kconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#
# KVM configuration
#
config HAVE_KVM
bool

config HAVE_KVM_IRQCHIP
bool
source "virt/kvm/Kconfig"

menuconfig VIRTUALIZATION
bool "Virtualization"
Expand Down
7 changes: 2 additions & 5 deletions arch/x86/kvm/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions virt/kvm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# KVM common configuration items and defaults

config HAVE_KVM
bool

config HAVE_KVM_IRQCHIP
bool

0 comments on commit 0ba12d1

Please sign in to comment.