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.

2. create a virtio device

-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

sudo trace-cmd record -e kvm_mmio
sudo trace-cmd report