Basic Mechanism of LKL and UINTR
LKL Mechanism basic mechanism of LKL The Request: An application makes a request (e.g., read) through LKL’s safe, interrupt-based system call API, then sleeps. The LKL kernel processes the request and calls out to a native stub (a callback function provided by the application). This stub executes the actual I/O operation using the host OS’s functions. The Responses: When the host I/O is finished, the native stub is notified. The stub triggers a simulated IRQ back into LKL to signal completion. LKL handles this completion and wakes up the original application thread with the data or result. Application Target: reuse the original, high-quality Linux kernel code as a library Code: arch/lkl: 实现内核到用户空间的移植,提供内核运行环境 tools/lkl: 提供用户接口,封装成库和工具供应用程序使用 ...