diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2025-07-11 08:45:01 -0700 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2025-07-16 16:51:21 +0200 |
commit | 8eb6d39e22a2f9ea1a415d95d3c3ac5d5752b6d7 (patch) | |
tree | bf99db25dbcaf941266f7fd1e2dee8ef3304bdaf /scripts/qapi/source.py | |
parent | f96b157ebb93f94cd56ebbc99bc20982b8fd86ef (diff) | |
download | qemu-8eb6d39e22a2f9ea1a415d95d3c3ac5d5752b6d7.zip qemu-8eb6d39e22a2f9ea1a415d95d3c3ac5d5752b6d7.tar.gz qemu-8eb6d39e22a2f9ea1a415d95d3c3ac5d5752b6d7.tar.bz2 |
qom: qom-list-get
Using qom-list and qom-get to get all the nodes and property values in
a QOM tree can take multiple seconds because it requires 1000's of
individual QOM requests. Some managers fetch the entire tree or a
large subset of it when starting a new VM, and this cost is a
substantial fraction of start up time.
Define the qom-list-get command, which fetches all the properties and
values for a list of paths. This can be much faster than qom-list
plus qom-get. When getting an entire QOM tree, I measured a 10x
speedup in elapsed time.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <1752248703-217318-2-git-send-email-steven.sistare@oracle.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions