diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-07-04 08:34:32 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 08:40:26 -0400 |
commit | c3eb5b14449a0949e9764d39374a2ea63faae14f (patch) | |
tree | 8c4baf9e84c8c70651b9d4282df6fce776cfdcaa /arch | |
parent | fe489bf4505ae26d3c6d6a1f1d3064c2a9c5cd85 (diff) |
arm64: KVM: Kconfig integration
Finally plug KVM/arm64 into the config system, making it possible
to enable KVM support on AArch64 CPUs.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm64/kernel/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/arm64/kvm/Kconfig | 51 |
3 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4143d9b0d87a..9737e97f9f38 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig | |||
@@ -270,6 +270,8 @@ source "drivers/Kconfig" | |||
270 | 270 | ||
271 | source "fs/Kconfig" | 271 | source "fs/Kconfig" |
272 | 272 | ||
273 | source "arch/arm64/kvm/Kconfig" | ||
274 | |||
273 | source "arch/arm64/Kconfig.debug" | 275 | source "arch/arm64/Kconfig.debug" |
274 | 276 | ||
275 | source "security/Kconfig" | 277 | source "security/Kconfig" |
diff --git a/arch/arm64/kernel/asm-offsets.c b/arch/arm64/kernel/asm-offsets.c index 49c162c03b69..666e231d410b 100644 --- a/arch/arm64/kernel/asm-offsets.c +++ b/arch/arm64/kernel/asm-offsets.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
22 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
23 | #include <linux/dma-mapping.h> | 23 | #include <linux/dma-mapping.h> |
24 | #include <linux/kvm_host.h> | ||
24 | #include <asm/thread_info.h> | 25 | #include <asm/thread_info.h> |
25 | #include <asm/memory.h> | 26 | #include <asm/memory.h> |
26 | #include <asm/cputable.h> | 27 | #include <asm/cputable.h> |
diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig new file mode 100644 index 000000000000..21e90820bd23 --- /dev/null +++ b/arch/arm64/kvm/Kconfig | |||
@@ -0,0 +1,51 @@ | |||
1 | # | ||
2 | # KVM configuration | ||
3 | # | ||
4 | |||
5 | source "virt/kvm/Kconfig" | ||
6 | |||
7 | menuconfig VIRTUALIZATION | ||
8 | bool "Virtualization" | ||
9 | ---help--- | ||
10 | Say Y here to get to see options for using your Linux host to run | ||
11 | other operating systems inside virtual machines (guests). | ||
12 | This option alone does not add any kernel code. | ||
13 | |||
14 | If you say N, all options in this submenu will be skipped and | ||
15 | disabled. | ||
16 | |||
17 | if VIRTUALIZATION | ||
18 | |||
19 | config KVM | ||
20 | bool "Kernel-based Virtual Machine (KVM) support" | ||
21 | select MMU_NOTIFIER | ||
22 | select PREEMPT_NOTIFIERS | ||
23 | select ANON_INODES | ||
24 | select KVM_MMIO | ||
25 | select KVM_ARM_HOST | ||
26 | select KVM_ARM_VGIC | ||
27 | select KVM_ARM_TIMER | ||
28 | ---help--- | ||
29 | Support hosting virtualized guest machines. | ||
30 | |||
31 | If unsure, say N. | ||
32 | |||
33 | config KVM_ARM_HOST | ||
34 | bool | ||
35 | ---help--- | ||
36 | Provides host support for ARM processors. | ||
37 | |||
38 | config KVM_ARM_VGIC | ||
39 | bool | ||
40 | depends on KVM_ARM_HOST && OF | ||
41 | select HAVE_KVM_IRQCHIP | ||
42 | ---help--- | ||
43 | Adds support for a hardware assisted, in-kernel GIC emulation. | ||
44 | |||
45 | config KVM_ARM_TIMER | ||
46 | bool | ||
47 | depends on KVM_ARM_VGIC | ||
48 | ---help--- | ||
49 | Adds support for the Architected Timers in virtual machines. | ||
50 | |||
51 | endif # VIRTUALIZATION | ||