Last active
August 2, 2023 08:25
-
-
Save MatiasVara/64dad9f50787bae9718f2c860ec9cc08 to your computer and use it in GitHub Desktop.
Get descriptor content from vq from the qemu monitor. The VM shall be stopped otherwise the content could not be correct. A better way to do this is by using gdb.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(qemu) info virtio | |
/machine/peripheral-anon/device[2]/virtio-backend [virtio-blk] | |
/machine/peripheral-anon/device[1]/virtio-backend [virtio-sound] | |
/machine/peripheral-anon/device[0]/virtio-backend [virtio-net] | |
(qemu) info virtio-queue-element /machine/peripheral-anon/device[1]/virtio-backend 2 | |
/machine/peripheral-anon/device[1]/virtio-backend: | |
device_name: virtio-sound | |
index: 12 | |
desc: | |
descs: | |
addr 0x102b2268c len 8 (write), | |
addr 0x107c10800 len 1024 (next), | |
addr 0x102b22688 len 4 (next) | |
avail: | |
flags: 0 | |
idx: 23907 | |
ring: 12 | |
used: | |
flags: 0 | |
idx: 23907 | |
(qemu) xp/80hx 0x107c10800 | |
0000000107c10800: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10810: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10820: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10830: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10840: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10850: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10860: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10870: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10880: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
0000000107c10890: 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 | |
(qemu) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment