3 ms·
Yes. The kernel does this quite a bit. See https://lwn.net/Articles/620640/ https://lwn.net/Articles/620640/ for the port of the alternative patching framework
by rrss 7y ago
Yes. The kernel does this quite a bit. See https://lwn.net/Articles/620640/ https://lwn.net/Articles/620640/ for the port of the alternative patching framework to arm64, and https://patchwork.kernel.org/patch/6859741/ https://patchwork.kernel.org/patch/6859741/ for an example using it to use the ARM v8.1 LSE atomics when available.
Another use case is kprobes.
- rwmj 7y agoDynamic ftrace too (see the explanation for how it works here: https://www.kernel.org/doc/Documentation/trace/ftrace.txt https://www.kernel.org/doc/Documentation/trace/ftrace.txt). I thought that paravirt-ops does patching of the kernel at boot time, but I can't find any reference for it right now.