The stefano-garzarella/qemu-boot-time repository contains a Python perf-script and (Linux, QEMU, SeaBIOS) patches to measure the boot time of a Linux VM with QEMU/KVM.
Using I/O writes, we can trace events to measure the time consumed during the boot phase by the different components:
- linuxboot [bzImage]
- pvh [vmlinux + PVH entry point]
- Linux kernel