forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/x86/kvm/Kconfig
....@@ -9,7 +9,7 @@
99 bool "Virtualization"
1010 depends on HAVE_KVM || X86
1111 default y
12
- ---help---
12
+ help
1313 Say Y here to get to see options for using your Linux host to run other
1414 operating systems inside virtual machines (guests).
1515 This option alone does not add any kernel code.
....@@ -41,10 +41,12 @@
4141 select PERF_EVENTS
4242 select HAVE_KVM_MSI
4343 select HAVE_KVM_CPU_RELAX_INTERCEPT
44
+ select HAVE_KVM_NO_POLL
45
+ select KVM_XFER_TO_GUEST_WORK
4446 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
4547 select KVM_VFIO
4648 select SRCU
47
- ---help---
49
+ help
4850 Support hosting fully virtualized guest machines using hardware
4951 virtualization extensions. You will need a fairly recent
5052 processor equipped with virtualization extensions. You will also
....@@ -58,14 +60,26 @@
5860
5961 If unsure, say N.
6062
61
-config KVM_INTEL
62
- tristate "KVM for Intel processors support"
63
+config KVM_WERROR
64
+ bool "Compile KVM with -Werror"
65
+ # KASAN may cause the build to fail due to larger frames
66
+ default y if X86_64 && !KASAN
67
+ # We use the dependency on !COMPILE_TEST to not be enabled
68
+ # blindly in allmodconfig or allyesconfig configurations
6369 depends on KVM
64
- # for perf_guest_get_msrs():
65
- depends on CPU_SUP_INTEL
66
- ---help---
67
- Provides support for KVM on Intel processors equipped with the VT
68
- extensions.
70
+ depends on (X86_64 && !KASAN) || !COMPILE_TEST
71
+ depends on EXPERT
72
+ help
73
+ Add -Werror to the build flags for KVM.
74
+
75
+ If in doubt, say "N".
76
+
77
+config KVM_INTEL
78
+ tristate "KVM for Intel (and compatible) processors support"
79
+ depends on KVM && IA32_FEAT_CTL
80
+ help
81
+ Provides support for KVM on processors equipped with Intel's VT
82
+ extensions, a.k.a. Virtual Machine Extensions (VMX).
6983
7084 To compile this as a module, choose M here: the module
7185 will be called kvm-intel.
....@@ -73,7 +87,7 @@
7387 config KVM_AMD
7488 tristate "KVM for AMD processors support"
7589 depends on KVM
76
- ---help---
90
+ help
7791 Provides support for KVM on AMD processors equipped with the AMD-V
7892 (SVM) extensions.
7993
....@@ -85,18 +99,14 @@
8599 bool "AMD Secure Encrypted Virtualization (SEV) support"
86100 depends on KVM_AMD && X86_64
87101 depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
88
- ---help---
102
+ help
89103 Provides support for launching Encrypted VMs on AMD processors.
90104
91105 config KVM_MMU_AUDIT
92106 bool "Audit KVM MMU"
93107 depends on KVM && TRACEPOINTS
94
- ---help---
108
+ help
95109 This option adds a R/W kVM module parameter 'mmu_audit', which allows
96110 auditing of KVM MMU events at runtime.
97
-
98
-# OK, it's a little counter-intuitive to do this, but it puts it neatly under
99
-# the virtualization menu.
100
-source drivers/vhost/Kconfig
101111
102112 endif # VIRTUALIZATION