##// END OF EJS Templates
Update 13-kernel.sh
burnbabyburn -
r644:f0a3f8f73363
parent child
Show More
@@ -128,6 +128,8 if [ "$BUILD_KERNEL" = true ] ; then
128
128
129 # enable basic KVM support; see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453
129 # enable basic KVM support; see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453
130 if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ]; } ; then
130 if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ]; } ; then
131 set_kernel_config CONFIG_HAVE_KVM y
132 set_kernel_config CONFIG_HIGH_RES_TIMERS y
131 set_kernel_config CONFIG_HAVE_KVM_IRQCHIP y
133 set_kernel_config CONFIG_HAVE_KVM_IRQCHIP y
132 set_kernel_config CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL y
134 set_kernel_config CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL y
133 set_kernel_config CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT y
135 set_kernel_config CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT y
@@ -142,16 +144,18 if [ "$BUILD_KERNEL" = true ] ; then
142 set_kernel_config CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT y
144 set_kernel_config CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT y
143 set_kernel_config CONFIG_KVM_MMIO y
145 set_kernel_config CONFIG_KVM_MMIO y
144 set_kernel_config CONFIG_KVM_VFIO y
146 set_kernel_config CONFIG_KVM_VFIO y
147 set_kernel_config CONFIG_KVM_MMU_AUDIT y
145 set_kernel_config CONFIG_VHOST m
148 set_kernel_config CONFIG_VHOST m
146 set_kernel_config CONFIG_VHOST_CROSS_ENDIAN_LEGACY y
149 set_kernel_config CONFIG_VHOST_CROSS_ENDIAN_LEGACY y
147 set_kernel_config CONFIG_VHOST_NET m
150 set_kernel_config CONFIG_VHOST_NET m
148 set_kernel_config CONFIG_VIRTUALIZATION y
151 set_kernel_config CONFIG_VIRTUALIZATION y
149
150 set_kernel_config CONFIG_MMU_NOTIFIER y
152 set_kernel_config CONFIG_MMU_NOTIFIER y
151
153
154 set_kernel_config CONFIG_SLAB_FREELIST_RANDOM=y
155 set_kernel_config CONFIG_SLAB_FREELIST_HARDENED=y
156
152 # erratum
157 # erratum
153 set_kernel_config ARM64_ERRATUM_834220 y
158 set_kernel_config ARM64_ERRATUM_834220 y
154
155 # https://sourceforge.net/p/kvm/mailman/message/18440797/
159 # https://sourceforge.net/p/kvm/mailman/message/18440797/
156 set_kernel_config CONFIG_PREEMPT_NOTIFIERS y
160 set_kernel_config CONFIG_PREEMPT_NOTIFIERS y
157 fi
161 fi
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant