summary refs log tree commit diff stats
path: root/scripts/qapi
diff options
context:
space:
mode:
authorChristian Schoenebeck <qemu_oss@crudebyte.com>2021-01-27 00:00:34 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-16 17:15:39 +0100
commitf6a2c6eee77458a1f2cf6632b2d9f2fd97bf595e (patch)
tree39d554b578f6ad405adfcbc3515481d9e6be7742 /scripts/qapi
parent027b524d6a427d7c89f4e8af44c49d96796adab5 (diff)
downloadfocaccia-qemu-f6a2c6eee77458a1f2cf6632b2d9f2fd97bf595e.tar.gz
focaccia-qemu-f6a2c6eee77458a1f2cf6632b2d9f2fd97bf595e.zip
libqos/qgraph: add qos_node_create_driver_named()
So far the qos subsystem of the qtest framework had the limitation
that only one instance of the same official QEMU (QMP) driver name
could be created for qtests. That's because a) the created qos
node names must always be unique, b) the node name must match the
official QEMU driver name being instantiated and c) all nodes are
in a global space shared by all tests.

This patch removes this limitation by introducing a new function
qos_node_create_driver_named() which allows test case authors to
specify a node name being different from the actual associated
QEMU driver name. It fills the new 'qemu_name' field of
QOSGraphNode for that purpose.

Adjust build_driver_cmd_line() and qos_graph_node_set_availability()
to correctly deal with either accessing node name vs. node's
qemu_name correctly.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <3be962ff38f3396f8040deaa5ffdab525c4e0b16.1611704181.git.qemu_oss@crudebyte.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi')
0 files changed, 0 insertions, 0 deletions