Improving Xen Traceability: More Than Just Livepatching
summary
Claims that Xen’s livepatch can become a runtime tracer by reusing livepatch patching to redirect function entries into callbacks, demonstrating an livepatch-based function tracer that uses a compiler option to reserve two NOPs on arm64, an implemented trampoline that saves registers, and a hypervisorFS control plane shown on a Raspberry Pi demo. Uses Xen livepatch tooling with a special section name (livepatch_traces), writes output to a trace file, and notes current limits: Dom0-only access and remaining integration work with ftrace-style safety checks.
AI-written summary · about
chapters (21)
- 0:00Introduction to live patch tracing
- 1:05Speaker introduction
- 1:27Current Xen debugging tools
- 2:08Introducing Ftrace basics
- 3:33How Ftrace reserves function entries
- 4:35Ftrace patching mechanism
- 5:38Live patching overview
- 6:21Live patch vs Ftrace differences
- 7:45Missing pieces for tracing
- 8:07Implementing trampoline support
- 9:13Using the new tracing feature
- 11:56Live demo setup
- 13:09Demo of function tracer
- 15:42Demo results and summary
- 16:26Q&A: Customizing caller functions
- 17:09Q&A: Security implications
- 18:13Q&A: Integration with Ftrace
- 18:55Q&A: Identifying traceable functions
- 20:41Q&A: Performance considerations
- 21:42Q&A: Recursive tracing
- 22:27Q&A: Tracing Dom0 with Ftrace
