On 10/06/19 15:28, Andreas Färber wrote: > So if we want a new QMP operation, the most sense would probably make > where-can-I-attach-type(foo) returning a list of QOM paths, showing only > the first free slot per bus. That would allow a more efficient lookup > implementation inside QEMU than needing to check each slot[n] property > via qom-get after discovering it with qom-list.
Note that what Natalia is seeking is an introspection mechanism to be used _before_ creating a virtual machine though. Paolo