```bash #query-pci #query-dump #query-machines ./qemu-system-x86_64.exe -qmp tcp:127.0.0.1:12345,server,nowait nc localhost 12345 ``` ```json { "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 * https://github.com/qemu/qemu/blob/f57587c7d47b35b2d9b31def3a74d81bdb5475d7/qapi/net.json * https://github.com/qemu/qemu/blob/f57587c7d47b35b2d9b31def3a74d81bdb5475d7/scripts/qmp/qom-tree * https://github.com/qemu/qemu/tree/f57587c7d47b35b2d9b31def3a74d81bdb5475d7/python/qemu