]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.suse/kvm-as-kmp
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / kvm-as-kmp
1 From: Alexander Graf <agraf@suse.de>
2 Date: Sat, 18 Oct 2008 01:18:24 +0200
3 Subject: Allow KVM to be built as KMP
4 References: FATE#303679
5
6 As discussed on the kernel mailinglist, we need a helper config
7 option to enable KVM dependencies in the kernel, so we can
8 build it as a KMP later on. This patch provides this option.
9
10 Signed-off-by: Alexander Graf <agraf@suse.de>
11 Signed-off-by: Hannes Reinecke <hare@suse.de>
12 ---
13 arch/x86/kvm/Kconfig | 14 ++++++++++++++
14 1 files changed, 14 insertions(+), 0 deletions(-)
15
16 Index: linux-2.6.27/arch/x86/kvm/Kconfig
17 ===================================================================
18 --- linux-2.6.27.orig/arch/x86/kvm/Kconfig
19 +++ linux-2.6.27/arch/x86/kvm/Kconfig
20 @@ -17,6 +17,20 @@ menuconfig VIRTUALIZATION
21
22 if VIRTUALIZATION
23
24 +config KVM_KMP
25 + bool "Build Kernel-based Virtual Machine (KVM) as KMP"
26 + depends on HAVE_KVM
27 + select PREEMPT_NOTIFIERS
28 + select MMU_NOTIFIER
29 + select ANON_INODES
30 + ---help---
31 + Normally KVM has to be enabled in the kernel config to automatically
32 + select depending features. Because we are building KVM as a KMP, we
33 + need the chance to only select the dependencies, but not build KVM
34 + itself.
35 +
36 + Say Y here.
37 +
38 config KVM
39 tristate "Kernel-based Virtual Machine (KVM) support"
40 depends on HAVE_KVM
41 Index: linux-2.6.27/arch/ia64/kvm/Kconfig
42 ===================================================================
43 --- linux-2.6.27.orig/arch/ia64/kvm/Kconfig
44 +++ linux-2.6.27/arch/ia64/kvm/Kconfig
45 @@ -17,6 +17,19 @@ menuconfig VIRTUALIZATION
46
47 if VIRTUALIZATION
48
49 +config KVM_KMP
50 + bool "Build Kernel-based Virtual Machine (KVM) as KMP"
51 + depends on HAVE_KVM
52 + select PREEMPT_NOTIFIERS
53 + select ANON_INODES
54 + ---help---
55 + Normally KVM has to be enabled in the kernel config to automatically
56 + select depending features. Because we are building KVM as a KMP, we
57 + need the chance to only select the dependencies, but not build KVM
58 + itself.
59 +
60 + Say Y here.
61 +
62 config KVM
63 tristate "Kernel-based Virtual Machine (KVM) support"
64 depends on HAVE_KVM && EXPERIMENTAL