Several Linux kernels run without a hypervisor

Summary

On Hackaday, Maya Posch presents mklinux, which runs several independent Linux kernels at the same time directly on the same hardware. A host kernel divides CPUs, memory and PCI devices into instances and boots a separate kernel into each via kexec, without a hypervisor and without emulation. According to the project's benchmarks, latency is on par with KVM guests or up to twice as good.

How the partitioning works

Cong Wang announced mklinux v7.0-mk2 at the end of August 2026. The host kernel manages a pool of CPUs, memory and PCI devices, carves instances out of it and boots a separate kernel into each instance via kexec_file_load(). Each of these kernels runs natively on its own CPUs, physical memory and devices; only what is explicitly shared is shared.

Network cards and SSDs with several hardware queues give each instance its own queues. Between kernels there is a normal Linux network device whose descriptor rings live in shared memory, so applications use unmodified sockets.

What you need to try it

The kernel has to be built with CONFIG_MULTIKERNEL and CONFIG_MKTTY; both require memory hotplug, hot-remove and CONFIG_CONTIG_ALLOC. Instances are managed by the Python tool kerf: kerf init defines the pool, kerf create an instance with CPUs and memory, kerf load the kernel and kerf start boots it with a console.

With the --image option an instance boots straight into a Docker image. This needs the DAXFS kernel module, which is maintained outside the official kernel and must be loaded on both sides.

Ideas

  • Several full kernels share one machine without a hypervisor layer.
  • The host kernel assigns CPUs, memory and devices exclusively to instances.
  • kexec starts new kernels next to the running one instead of replacing it.
  • Hardware queues of modern NICs and SSDs separate instances at device level.
  • Each application can get a kernel configured specifically for it.
  • Resources can be moved between kernels at runtime via hotplug.

Insights

  • Isolation can come from partitioning instead of translation.
  • Dropping emulation gains performance but loses the control layer of a hypervisor.
  • Existing kernel mechanisms such as kexec and hotplug can carry new operating models.

Quotes

  • Nothing is emulated and nothing is trapped; the only thing shared is what you choose to share. (Cong Wang, announcement of mklinux v7.0-mk2)

Facts

  • According to LWN, mklinux v7.0-mk2 was presented on 25 August 2026.
  • New kernels are loaded into their instance via kexec_file_load().
  • CONFIG_MULTIKERNEL depends on CONFIG_MEMORY_HOTPLUG, CONFIG_MEMORY_HOTREMOVE and CONFIG_CONTIG_ALLOC.
  • Management is handled by the kerf tool, shared file storage by the DAXFS module.

References

Critique

  • The claims about isolation and performance come from the project itself; neither Hackaday nor LWN cites independent measurements or a security assessment.

Remarks

  • The project shares only its name with the MkLinux of the nineties, which ran Linux as a server on the Mach microkernel on PowerPC Macs.

Recommendations

  • Try mklinux on a test machine with its own console first, not on a production system.
  • Plan the CPUs and memory of the instances before creating the pool with kerf init.
  • Measure the latency of your own workload before relying on the project's figures.

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.