On 07/29/2014 06:45 AM, Juan Quintela wrote: > Sanidhya Kashyap wrote: >> I have provided a qmp interface for getting the list of qdevified devices >> that have been registered with SaveVMHandlers. >> >> Signed-off-by: Sanidhya Kashyap >> --- >> qapi-schema.json | 22 ++++++++++++++++++++++ >> qmp-commands.hx | 25 +++++++++++++++++++++++++ >> savevm.c | 34 ++++++++++++++++++++++++++++++++++ >> 3 files changed, 81 insertions(+) >> + >> +Example (1): >> + >> +-> { "execute": "query-qdev-devices" } >> +<- { "return": [ >> + { >> + "devices": [ "kvm-tpr-opt", "piix4_pm" ] > > Once here, can we change this to also include the device version? > > i.e. something like: > > "devices": [ [ "device": [ "name": "kvm-tpr-opt", "version", 15]]], ...] Not valid JSON, but see my other messages in the thread. My idea of an array of structs would be nice for this: { "return": [ { "device": "kvm-tpr-opt", "version": 15 }, { "device": "piix4_pm", "version": 1 } ] } -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org