diff options
| author | Christian Borntraeger <borntraeger@de.ibm.com> | 2008-03-25 13:47:36 -0400 |
|---|---|---|
| committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 05:00:47 -0400 |
| commit | 77b455f1bcfa0fddb31b8e6f9f2adc246acb4216 (patch) | |
| tree | f16f4479739b1de7752c12363efbf82034258a5b /arch/s390 | |
| parent | e28acfea5dd9dbc67c2594cbefc140129dbd0e3f (diff) | |
KVM: s390: add kvm to kconfig on s390
This patch adds the virtualization submenu and the kvm option to the kernel
config. It also defines HAVE_KVM for 64bit kernels.
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/s390')
| -rw-r--r-- | arch/s390/Kconfig | 3 | ||||
| -rw-r--r-- | arch/s390/kvm/Kconfig | 43 |
2 files changed, 46 insertions, 0 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 513a0589e81d..9a742ce9cc92 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
| @@ -73,6 +73,7 @@ config S390 | |||
| 73 | select HAVE_OPROFILE | 73 | select HAVE_OPROFILE |
| 74 | select HAVE_KPROBES | 74 | select HAVE_KPROBES |
| 75 | select HAVE_KRETPROBES | 75 | select HAVE_KRETPROBES |
| 76 | select HAVE_KVM if 64BIT | ||
| 76 | 77 | ||
| 77 | source "init/Kconfig" | 78 | source "init/Kconfig" |
| 78 | 79 | ||
| @@ -540,3 +541,5 @@ source "security/Kconfig" | |||
| 540 | source "crypto/Kconfig" | 541 | source "crypto/Kconfig" |
| 541 | 542 | ||
| 542 | source "lib/Kconfig" | 543 | source "lib/Kconfig" |
| 544 | |||
| 545 | source "arch/s390/kvm/Kconfig" | ||
diff --git a/arch/s390/kvm/Kconfig b/arch/s390/kvm/Kconfig new file mode 100644 index 000000000000..2489b341a00b --- /dev/null +++ b/arch/s390/kvm/Kconfig | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | # | ||
| 2 | # KVM configuration | ||
| 3 | # | ||
| 4 | config HAVE_KVM | ||
| 5 | bool | ||
| 6 | |||
| 7 | menuconfig VIRTUALIZATION | ||
| 8 | bool "Virtualization" | ||
| 9 | default y | ||
| 10 | ---help--- | ||
| 11 | Say Y here to get to see options for using your Linux host to run other | ||
| 12 | operating systems inside virtual machines (guests). | ||
| 13 | This option alone does not add any kernel code. | ||
| 14 | |||
| 15 | If you say N, all options in this submenu will be skipped and disabled. | ||
| 16 | |||
| 17 | if VIRTUALIZATION | ||
| 18 | |||
| 19 | config KVM | ||
| 20 | tristate "Kernel-based Virtual Machine (KVM) support" | ||
| 21 | depends on HAVE_KVM && EXPERIMENTAL | ||
| 22 | select PREEMPT_NOTIFIERS | ||
| 23 | select ANON_INODES | ||
| 24 | select S390_SWITCH_AMODE | ||
| 25 | select PREEMPT | ||
| 26 | ---help--- | ||
| 27 | Support hosting paravirtualized guest machines using the SIE | ||
| 28 | virtualization capability on the mainframe. This should work | ||
| 29 | on any 64bit machine. | ||
| 30 | |||
| 31 | This module provides access to the hardware capabilities through | ||
| 32 | a character device node named /dev/kvm. | ||
| 33 | |||
| 34 | To compile this as a module, choose M here: the module | ||
| 35 | will be called kvm. | ||
| 36 | |||
| 37 | If unsure, say N. | ||
| 38 | |||
| 39 | # OK, it's a little counter-intuitive to do this, but it puts it neatly under | ||
| 40 | # the virtualization menu. | ||
| 41 | source drivers/virtio/Kconfig | ||
| 42 | |||
| 43 | endif # VIRTUALIZATION | ||
