mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-11 04:33:46 +00:00
The VMBus/Hyper-V socket patches were partly taken from the now defunct 4.11 tree and partly form the WIP 4.12 tree at: https://github.com/dcui/linux/commits/decui/msft-4.12.y From the 4.11 tree: - 0001-tools-build-Add-test-for-sched_getcpu.patch Does not apply, may not be needed anymore to compile perf - 0002-vmbus-vmbus_open-reset-onchannel_callback-on-error.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0003-vmbus-add-the-matching-tasklet_enable-in-vmbus_close.patch Already upstream: 5116f5e2e05cf("vmbus: re-enable channel tasklet") - 0004-vmbus-remove-goto-error_clean_msglist-in-vmbus_open From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0005-vmbus-dynamically-enqueue-dequeue-a-channel-on-vmbus.patch From the 4.11 patches - 0006-hv_sock-implements-Hyper-V-transport-for-Virtual-Soc.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0007-VMCI-only-try-to-load-on-VMware-hypervisor.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0008-hv_sock-add-the-support-of-auto-loading.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0009-tools-hv_sock-2-simple-test-cases.patch Dropped, this was just test code - 0010-vmbus-introduce-in-place-packet-iterator.patch Already upstream: f3dd3f4797652("vmbus: introduce in-place packet iterator") - 0011-hvsock-fix-a-race-in-hvs_stream_dequeue.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0012-hvsock-fix-vsock_dequeue-enqueue_accept-race.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0013-Drivers-hv-vmbus-Fix-rescind-handling.patch From the 4.11 patches - 0014-vmbus-fix-hv_percpu_channel_deq-enq-race.patch From the 4.11 patches - 0015-vmbus-add-vmbus-onoffer-onoffer_rescind-sync.patch From the 4.11 patches - 0016-hv-sock-a-temporary-workaround-for-the-pending_send_.patch DROPPED. Does not apply at all anymore. Was a hack anyway - 0017-vmbus-fix-the-missed-signaling-in-hv_signal_on_read.patch Applied manually from the 4.11 patches - 0018-hv-sock-avoid-double-FINs-if-shutdown-is-called.patch From https://github.com/dcui/linux/commits/decui/msft-4.12.y - 0019-Added-vsock-transport-support-to-9pfs.patch From the 4.11 patches - 0020-NVDIMM-reducded-ND_MIN_NAMESPACE_SIZE-from-4MB-to-4K.patch From the 4.11 patches Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
See ../docs/kernel-patches.md for more information on kernel builds.
To build with various debug options enabled, build the kernel with
make DEBUG=1
. The options enabled are listed in kernel_config.debug
.
This allocates a significant amount of memory on boot and you may need to
adjust the kernel config on some systems. Specifically:
--- a/alpine/kernel/kernel_config
+++ b/alpine/kernel/kernel_config
@@ -415,8 +415,8 @@ CONFIG_DMI=y
# CONFIG_CALGARY_IOMMU is not set
CONFIG_SWIOTLB=y
CONFIG_IOMMU_HELPER=y
-CONFIG_MAXSMP=y
-CONFIG_NR_CPUS=8192
+CONFIG_MAXSMP=n
+CONFIG_NR_CPUS=8
# CONFIG_SCHED_SMT is not set
CONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not set