Skip to content

Instantly share code, notes, and snippets.

@rgl
Last active September 30, 2025 20:42
Show Gist options
  • Select an option

  • Save rgl/dc38c6875a53469fdebb2e9c0a220c6c to your computer and use it in GitHub Desktop.

Select an option

Save rgl/dc38c6875a53469fdebb2e9c0a220c6c to your computer and use it in GitHub Desktop.
qemu qmp
#query-pci
#query-dump
#query-machines

./qemu-system-x86_64.exe -qmp tcp:127.0.0.1:12345,server,nowait

nc localhost 12345
{ "execute": "qmp_capabilities" }
{ "execute": "query-qmp-schema" }
{ "execute": "qom-list", "arguments": { "path": "/" } }
{ "execute": "qom-list", "arguments": { "path": "/machine" } }
{ "execute": "qom-get", "arguments": { "path": "/machine", "property": "type" } }
{ "execute": "qom-list", "arguments": { "path": "/machine/i440fx" } }
{ "execute": "qom-get", "arguments": { "path": "/machine/i440fx", "property": "type" } }
{ "execute": "qom-list", "arguments": { "path": "/machine/i440fx/pci.0" } }
{ "execute": "qom-get", "arguments": { "path": "/machine/i440fx/pci.0", "property": "type" } }
{ "execute": "qom-list", "arguments": { "path": "/machine/i440fx/pci.0/child[3]" } }
{ "execute": "qom-get", "arguments": { "path": "/machine/i440fx/pci.0/child[3]", "property": "type" } }
{ "execute": "qom-get", "arguments": { "path": "/machine/i440fx/pci.0/child[3]", "property": "mac" } }
{ "execute": "qom-get", "arguments": { "path": "/machine/i440fx/pci.0/child[3]", "property": "netdev" } }
{ "execute": "qom-get", "arguments": { "path": "/machine/i440fx/pci.0/child[3]", "property": "legacy-addr" } }
{ "execute": "query-rx-filter", "arguments": { "name": "hub0port0" } }

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment