xref: /openbmc/qemu/qapi/accelerator.json (revision 18da42ee4273a66f240bcca7aa4d8ce3b97b1a77)
1# -*- Mode: Python -*-
2# vim: filetype=python
3#
4# SPDX-License-Identifier: GPL-2.0-or-later
5
6##
7# = Accelerators
8##
9
10{ 'include': 'common.json' }
11
12##
13# @KvmInfo:
14#
15# Information about support for KVM acceleration
16#
17# @enabled: true if KVM acceleration is active
18#
19# @present: true if KVM acceleration is built into this executable
20#
21# Since: 0.14
22##
23{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
24
25##
26# @query-kvm:
27#
28# Return information about KVM acceleration
29#
30# Returns: @KvmInfo
31#
32# Since: 0.14
33#
34# .. qmp-example::
35#
36#     -> { "execute": "query-kvm" }
37#     <- { "return": { "enabled": true, "present": true } }
38##
39{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
40