How to verify the virtio kick behavior
文章目录
How to use QEMU monitor and trace-cmd to verify the virtio kick behavior?
1. definition of virtio kick
kick: used by the guest to notify the host that SGs have been added.
http://retis.sssup.it/luca/KernelProgramming/Slides/kp_virtio.pdf
2. create a virtio device
1 | -drive format=raw,file=laag.img,if=virtio |
3. get the notify mmio addr in guest
In QEMU monitor, type info mtree
type info pci
4. track the kvm_mmio event
1 | sudo trace-cmd record -e kvm_mmio |