Taipei TimesTaiwan and the AI empire battleThe Jerusalem PostHezbollah supporters protest in Beirut for second evening over state prosecution of bomb smugglersBillboardEBiDAN’s ‘Yes! Tokyo’ Returns to No. 1 on Japan Hot 100 for 4th Total Week as ENHYPEN’s ‘I Want You’ DebutsCBS NewsSenate approves bill to compel release of more Epstein filesGlobal NewsBrampton woman who gave birth to stillborn child pleads guilty to concealing the bodySDP EspectáculosDenis Villeneuve adelanta los desafíos que marcarán Dune: Parte Tres3DNewsApple столкнулась с дефицитом экранов и других запчастей для iPhone DuoBBC NewsFernandez 'sacrifice' unlocks qualities for Maresca & Man CityThe VergeThe iPhone Duo might have more hinge issuesCBS SportsUse BetMGM bonus code CBSSPORTS to get $1,500 bonus bets for Nuggets-76ers, Alabama-Miami, NBA WednesdayABC News (Australia)Flood-hit councils face another wet season without recovery funding
The Daily Newsstand · Free, Always
Wednesday, December 2, 2026

You are reading Joho no Todai on KioskNews: newspapers from many countries on one stand, each linked to its original. What other papers report

mklinux v7.0-mk6 Adds RISC-V and AMD IOMMU Support: Separate Linux Kernels for Different CPU Cores

Translate

On December 1, U.S. local time, Linux kernel developer Cong Wang announced the release of mklinux v7.0-mk6 and its management tool, kerf 0.6.0. Wang said the kernel includes 88 patches on top of v7.0-mk5 and 419 on top of Linux 7.0.

As described in our coverage of the initial mklinux release, the host Linux kernel sets aside some CPUs, physical memory, and PCI devices, then boots another Linux kernel through an extended kexec_file_load(). Each kernel runs directly on its allocated physical resources, allowing multiple kernels to run concurrently without a hypervisor.

The update adds 64-bit RISC-V alongside x86_64 and Arm64. Cores that the host has never started or registered as logical CPUs can now be assigned to another kernel.

Wang gives the SpacemiT K3, which has different types of CPU cores, as an example. Cores of a type the host has not registered as logical CPUs automatically join the resource pool and can boot an independent Linux kernel. Each kernel must receive cores of a single type.

What stands out is that CPU allocation now extends beyond the host kernel to the entire physical machine. In some cases, assigning a separate kernel to each core type can address the difficulty of managing different types of cores in one kernel.

mklinux v7.0-mk6: Running multiple Linux kernels directly on one machine

AreaSupport or featureRequirements or use
CPUx86_64・Arm64
RISC-V added
64-bit RISC-V
Mixed core typesCan use cores the host never startedOne CPU type per kernel
RISC-V requirements
StartupStart CPUs and confirm they stopSBI HSM・IPI
Host OpenSBI domain
Forced haltWorks with interrupts disabledRequires SBI SSE
RestartPhysical machine must rebootWithout SSE, if stuck looping
With interrupts disabled
Device assignmentPCI devices onlyIMSIC for interrupts
IOMMU limits DMA
AMD IOMMU
InterruptsSupports remappingLent PCI devices
TakeoverInherits IOMMU managementAfter host is fenced off
PCI devices and AMD CPUs
PCI assignmentBy IOMMU groupGroups containing a bridge
Are excluded
Expansion ROMRead from a lent PCI deviceGPU driver retrieves
Video BIOS
AMDInherits failed-core recordsCPU core parity error

What separate kernels need on RISC-V

On RISC-V, mklinux uses SBI, the interface between the operating system and firmware, to start hardware execution units called harts, confirm that they have stopped, and release them. The host builds a device tree at each boot and passes it to the new kernel to describe resources such as assigned CPUs and memory.

The RISC-V design documentation lists firmware and interrupt requirements. It requires SBI extensions for hart state management (HSM) and interprocessor interrupts (IPIs), and the relevant harts must belong to the OpenSBI domain in which the host booted.

A forced halt can use firmware support for SBI SSE, which delivers software events to the operating system. Without SSE, a kernel stuck in a loop with interrupts disabled may be impossible to stop, leaving its instance unable to restart until the physical machine reboots.

Only PCI devices can be assigned to the new kernel. Interrupts also require an Incoming MSI Controller (IMSIC), which receives message-signaled interrupts. For devices behind an IOMMU, which manages device access to memory, access is limited to the assigned memory and the IMSIC area used for interrupts. Direct memory access (DMA) from devices outside an IOMMU lacks those restrictions.

RISC-V support entails design work from CPU startup through interrupt handling and memory protection.

AMD IOMMU support and kernel takeover

IOMMU support has also expanded. Interrupt remapping for lent devices, introduced for Intel VT-d in v7.0-mk5, now works on AMD hardware. The kernel that takes over after the host has been fenced off can also manage the IOMMUs.

PCI devices are assigned by IOMMU group, with all PCI functions in a group lent to the same kernel. Groups containing a bridge cannot be lent. A kernel can also read the expansion ROM of a PCI function assigned to it. GPU drivers need that capability to retrieve the video BIOS.

Mklinux lets another kernel take over the host role and is being developed as a basis for updating kernels or recovering from failures without rebooting the physical machine. Mk6 can also record an AMD CPU core disabled by a parity error and let a successor kernel report that information to user space.

Kernel takeover extends beyond CPU management. Inheriting device management and fault records as well as control of the CPUs could let a successor kernel keep the physical machine running while leaving a failed core unused.

Boundaries between independent kernels

Mklinux kernels communicate through shared-memory ring buffers and IPIs. Uses include console access, communication through AF_VSOCK, and access to PCI configuration space.

Management and protection in mklinux v7.0-mk6 and kerf 0.6.0

AreaMethod or settingRequirements or behavior
Resource protectionMemory and I/O access
Restricted through certain interfaces
Before host takeover
Other kernels' resources
Applies to root processes too
Takeover permissionAssume the host roleHost must authorize at startup
Static partitioningNo messaging region for hostCannot change resource allocations
Cannot lend PCI devices
Cannot request graceful shutdown
Control interfaceFile descriptor (FD)
Controlled via ioctl
Requires kerf 0.6.0
Incompatible with 0.5.0
Boot optionsChange per bootNo kernel reload needed
ConnectivityNetwork configurationSet per boot
No configuration if omitted
Startup actionSpecify a programKernel halts when it exits
Lockdown settingslockdown
Protect integrity or confidentiality
Set per boot
Not applied if omitted
Granular restrictionsIn addition to integrity protection,
Restricts confidentiality-sensitive access
Requires BPF LSM and BTF
Rebuild the distributed kernel
Custom bootCustom initramfs
Granular restrictions
Root can remove restrictions

In mk6, before a newly booted kernel takes over as host, even processes running as root have restricted access through device files and similar interfaces to memory and I/O ports used by other kernels. Only kernels explicitly authorized by the host at startup can fence it off and take over the machine.

A shared-memory message ring is created only if the instance requests it. Choosing static partitioning in kerf 0.6.0 without a messaging region for the host removes the ability to adjust the kernel's allocated resources, lend it PCI devices, or request a graceful shutdown.

Doing without inter-kernel messages also means giving up some ways to manage separate kernels as a single, flexible system. Being able to choose where kernels operate independently and where they cooperate is an interesting part of mklinux's design.

How kerf 0.6.0 changes instance management

Mk6 changes the application binary interface (ABI) for managing instances. Previously, additional operations in the reboot() system call started and stopped instances. Mk6 removes those operations and controls instances through kexec_file_load()'s returned file descriptor, using ioctl requests. It can also change boot parameters without reloading the kernel image.

Kerf 0.5.0 is incompatible with mk6, so kerf users need to upgrade to 0.6.0. With kerf 0.6.0, users specify networking, console settings, and the startup program for each boot. If no network configuration is specified, kerf does not carry over the previous boot's settings or configure a new network.

When the specified startup program exits, the kernel instance now stops as well. The tool can also list each CPU's physical ID, NUMA node, and assignment to the host, resource pool, or an instance.

Starting a kernel separately and stopping it when its program exits makes it behave more like a container. It points toward running a program with a dedicated Linux kernel of its own.

Choosing protection settings for each kernel

Kerf 0.6.0 can also apply kernel lockdown. Users can choose integrity or confidentiality protection, or pair integrity protection with fine-grained confidentiality restrictions through BPF LSM, a mechanism for extending Linux security policy. The custom restrictions require the target kernel to support BPF LSM and BPF Type Format (BTF).

Kerf applies these settings per boot. A later boot without a lockdown setting runs without kerf-applied lockdown. With a custom initial RAM filesystem (initramfs), root can remove custom confidentiality restrictions if no process is present to keep them in force.

The prebuilt packages do not include BTF, so using custom restrictions requires building a kernel with the necessary configuration.

A release based on Linux 7.0.14 is also available

The developers also published v7.0.14-mk6, which brings the mk6 changes to Linux 7.0.14. A change in how Linux identifies PCI drivers also required adjustments to the code that sets the driver for a lent PCI function.

Both releases offer prebuilt kernel packages in DEB and RPM formats for x86_64 and Arm64. The packages do not have Secure Boot signatures. RISC-V builds require compiling from source.

Mklinux is an independent development branch of the Linux kernel. It makes it possible for several kernels to share responsibility for physical resources that were once managed by one. A separate Linux kernel can boot even on cores the host has never registered. That broadens the choice of which kernel gets to use the machine's computing power.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.