kernel: fix virtualization kmod dependencies and kconfig symbols
[openwrt/staging/lynxis/omap.git] / package / kernel / linux / modules / virt.mk
1 #
2 # Copyright (C) 2016 Yousong Zhou <yszhou4tech@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 define KernelPackage/irqbypass
8 SUBMENU:=Virtualization
9 TITLE:=IRQ offload/bypass manager
10 KCONFIG:=CONFIG_IRQ_BYPASS_MANAGER
11 HIDDEN:=1
12 FILES:= $(LINUX_DIR)/virt/lib/irqbypass.ko
13 AUTOLOAD:=$(call AutoProbe,irqbypass.ko)
14 endef
15 $(eval $(call KernelPackage,irqbypass))
16
17
18 define KernelPackage/kvm-x86
19 SUBMENU:=Virtualization
20 TITLE:=Kernel-based Virtual Machine (KVM) support
21 DEPENDS:=@TARGET_x86_generic||TARGET_x86_64 +kmod-irqbypass
22 KCONFIG:=\
23 CONFIG_VIRTUALIZATION=y \
24 CONFIG_KVM \
25 CONFIG_TASK_XACCT=n \
26
27 FILES:= $(LINUX_DIR)/arch/$(LINUX_KARCH)/kvm/kvm.ko
28 AUTOLOAD:=$(call AutoProbe,kvm.ko)
29 endef
30
31 define KernelPackage/kvm-x86/description
32 Support hosting fully virtualized guest machines using hardware
33 virtualization extensions. You will need a fairly recent
34 processor equipped with virtualization extensions. You will also
35 need to select one or more of the processor modules.
36
37 This module provides access to the hardware capabilities through
38 a character device node named /dev/kvm.
39 endef
40
41 $(eval $(call KernelPackage,kvm-x86))
42
43
44 define KernelPackage/kvm-intel
45 SUBMENU:=Virtualization
46 TITLE:=KVM for Intel processors support
47 DEPENDS:=+kmod-kvm-x86
48 KCONFIG:=CONFIG_KVM_INTEL
49 FILES:= $(LINUX_DIR)/arch/$(LINUX_KARCH)/kvm/kvm-intel.ko
50 AUTOLOAD:=$(call AutoProbe,kvm-intel.ko)
51 endef
52
53 define KernelPackage/kvm-intel/description
54 Provides support for KVM on Intel processors equipped with the VT
55 extensions.
56 endef
57
58 $(eval $(call KernelPackage,kvm-intel))
59
60
61 define KernelPackage/kvm-amd
62 SUBMENU:=Virtualization
63 TITLE:=KVM for AMD processors support
64 DEPENDS:=+kmod-kvm-x86
65 KCONFIG:=CONFIG_KVM_AMD
66 FILES:= $(LINUX_DIR)/arch/$(LINUX_KARCH)/kvm/kvm-amd.ko
67 AUTOLOAD:=$(call AutoProbe,kvm-amd.ko)
68 endef
69
70 define KernelPackage/kvm-amd/description
71 Provides support for KVM on AMD processors equipped with the AMD-V
72 (SVM) extensions.
73 endef
74
75 $(eval $(call KernelPackage,kvm-amd))