]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: caps: Probe events from 'query-qmp-schema' rather than 'query-events'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 7 Feb 2019 11:50:27 +0000 (12:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Feb 2019 09:11:20 +0000 (10:11 +0100)
commit398d5766b30819c56d6d5e280678dd273f6585f7
treee7966a4d75f71c62d6b31e9c145e911ae784b68e
parent850bb78a6e873f945b69932e8140425b0946d89a
qemu: caps: Probe events from 'query-qmp-schema' rather than 'query-events'

QEMU plans to deprecate 'query-events' as it's non-extensible. Events
are also described by 'query-qmp-schema' so we can use that one instead.

This patch adds detection of events to
virQEMUCapsProbeQMPSchemaCapabilities using the same structure declaring
them for the old approach (virQEMUCapsEvents). This is possible as the
name is the same in the QMP schema and our detector supports that
trivially.

For any complex queries virQEMUCapsQMPSchemaQueries can be used in the
future.

For now we still call 'query-events' and discard the result so that it's
obvious that the tests pass. This will be cleaned up later.

https://bugzilla.redhat.com/show_bug.cgi?id=1673320

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_capabilities.c