2
0

virt.mk 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. define KernelPackage/kvm-x86
  17. SUBMENU:=Virtualization
  18. TITLE:=Kernel-based Virtual Machine (KVM) support
  19. DEPENDS:=@TARGET_x86_generic||TARGET_x86_64 +kmod-irqbypass
  20. KCONFIG:=\
  21. CONFIG_VIRTUALIZATION=y \
  22. CONFIG_KVM
  23. FILES:= $(LINUX_DIR)/arch/$(LINUX_KARCH)/kvm/kvm.ko
  24. AUTOLOAD:=$(call AutoProbe,kvm.ko)
  25. endef
  26. define KernelPackage/kvm-x86/description
  27. Support hosting fully virtualized guest machines using hardware
  28. virtualization extensions. You will need a fairly recent
  29. processor equipped with virtualization extensions. You will also
  30. need to select one or more of the processor modules.
  31. This module provides access to the hardware capabilities through
  32. a character device node named /dev/kvm.
  33. endef
  34. $(eval $(call KernelPackage,kvm-x86))
  35. define KernelPackage/kvm-intel
  36. SUBMENU:=Virtualization
  37. TITLE:=KVM for Intel processors support
  38. DEPENDS:=+kmod-kvm-x86
  39. KCONFIG:=CONFIG_KVM_INTEL
  40. FILES:= $(LINUX_DIR)/arch/$(LINUX_KARCH)/kvm/kvm-intel.ko
  41. AUTOLOAD:=$(call AutoProbe,kvm-intel.ko)
  42. endef
  43. define KernelPackage/kvm-intel/description
  44. Provides support for KVM on Intel processors equipped with the VT
  45. extensions.
  46. endef
  47. $(eval $(call KernelPackage,kvm-intel))
  48. define KernelPackage/kvm-amd
  49. SUBMENU:=Virtualization
  50. TITLE:=KVM for AMD processors support
  51. DEPENDS:=+kmod-kvm-x86
  52. KCONFIG:=CONFIG_KVM_AMD
  53. FILES:= $(LINUX_DIR)/arch/$(LINUX_KARCH)/kvm/kvm-amd.ko
  54. AUTOLOAD:=$(call AutoProbe,kvm-amd.ko)
  55. endef
  56. define KernelPackage/kvm-amd/description
  57. Provides support for KVM on AMD processors equipped with the AMD-V
  58. (SVM) extensions.
  59. endef
  60. $(eval $(call KernelPackage,kvm-amd))