Kconfig 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # KVM configuration
  4. #
  5. source "virt/kvm/Kconfig"
  6. menuconfig VIRTUALIZATION
  7. bool "Virtualization"
  8. ---help---
  9. Say Y here to get to see options for using your Linux host to run
  10. other operating systems inside virtual machines (guests).
  11. This option alone does not add any kernel code.
  12. If you say N, all options in this submenu will be skipped and disabled.
  13. if VIRTUALIZATION
  14. config KVM
  15. tristate "Kernel-based Virtual Machine (KVM) support"
  16. depends on HAVE_KVM
  17. select EXPORT_UASM
  18. select PREEMPT_NOTIFIERS
  19. select ANON_INODES
  20. select KVM_GENERIC_DIRTYLOG_READ_PROTECT
  21. select HAVE_KVM_VCPU_ASYNC_IOCTL
  22. select KVM_MMIO
  23. select MMU_NOTIFIER
  24. select SRCU
  25. ---help---
  26. Support for hosting Guest kernels.
  27. choice
  28. prompt "Virtualization mode"
  29. depends on KVM
  30. default KVM_MIPS_TE
  31. config KVM_MIPS_TE
  32. bool "Trap & Emulate"
  33. ---help---
  34. Use trap and emulate to virtualize 32-bit guests in user mode. This
  35. does not require any special hardware Virtualization support beyond
  36. standard MIPS32/64 r2 or later, but it does require the guest kernel
  37. to be configured with CONFIG_KVM_GUEST=y so that it resides in the
  38. user address segment.
  39. config KVM_MIPS_VZ
  40. bool "MIPS Virtualization (VZ) ASE"
  41. ---help---
  42. Use the MIPS Virtualization (VZ) ASE to virtualize guests. This
  43. supports running unmodified guest kernels (with CONFIG_KVM_GUEST=n),
  44. but requires hardware support.
  45. endchoice
  46. config KVM_MIPS_DYN_TRANS
  47. bool "KVM/MIPS: Dynamic binary translation to reduce traps"
  48. depends on KVM_MIPS_TE
  49. default y
  50. ---help---
  51. When running in Trap & Emulate mode patch privileged
  52. instructions to reduce the number of traps.
  53. If unsure, say Y.
  54. config KVM_MIPS_DEBUG_COP0_COUNTERS
  55. bool "Maintain counters for COP0 accesses"
  56. depends on KVM
  57. ---help---
  58. Maintain statistics for Guest COP0 accesses.
  59. A histogram of COP0 accesses is printed when the VM is
  60. shutdown.
  61. If unsure, say N.
  62. source drivers/vhost/Kconfig
  63. endif # VIRTUALIZATION