xref: /openbmc/qemu/qapi/accelerator.json (revision 7a3abf7243523353054476ed9a1eee8ccafe3247)
1# -*- Mode: Python -*-
2# vim: filetype=python
3#
4# SPDX-License-Identifier: GPL-2.0-or-later
5
6##
7# ************
8# Accelerators
9# ************
10##
11
12{ 'include': 'common.json' }
13
14##
15# @KvmInfo:
16#
17# Information about support for KVM acceleration
18#
19# @enabled: true if KVM acceleration is active
20#
21# @present: true if KVM acceleration is built into this executable
22#
23# Since: 0.14
24##
25{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
26
27##
28# @query-kvm:
29#
30# Return information about KVM acceleration
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
41##
42# @x-accel-stats:
43#
44# Query accelerator statistics
45#
46# Features:
47#
48# @unstable: This command is meant for debugging.
49#
50# Returns: accelerator statistics
51#
52# Since: 10.1
53##
54{ 'command': 'x-accel-stats',
55  'returns': 'HumanReadableText',
56  'features': [ 'unstable' ] }
57