mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 05:35:39 +00:00
Allow to query mshv capabilities via query-mshv QMP and info mshv HMP commands. Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com> Acked-by: Dr. David Alan Gilbert <dave@treblig.org> Link: https://lore.kernel.org/r/20250916164847.77883-25-magnuskulke@linux.microsoft.com [Fix "since" version. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
86 lines
1.5 KiB
Python
86 lines
1.5 KiB
Python
# -*- Mode: Python -*-
|
|
# vim: filetype=python
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
##
|
|
# ************
|
|
# Accelerators
|
|
# ************
|
|
##
|
|
|
|
{ 'include': 'common.json' }
|
|
|
|
##
|
|
# @KvmInfo:
|
|
#
|
|
# Information about support for KVM acceleration
|
|
#
|
|
# @enabled: true if KVM acceleration is active
|
|
#
|
|
# @present: true if KVM acceleration is built into this executable
|
|
#
|
|
# Since: 0.14
|
|
##
|
|
{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
|
|
|
|
##
|
|
# @query-kvm:
|
|
#
|
|
# Return information about KVM acceleration
|
|
#
|
|
# Since: 0.14
|
|
#
|
|
# .. qmp-example::
|
|
#
|
|
# -> { "execute": "query-kvm" }
|
|
# <- { "return": { "enabled": true, "present": true } }
|
|
##
|
|
{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
|
|
|
|
##
|
|
# @x-accel-stats:
|
|
#
|
|
# Query accelerator statistics
|
|
#
|
|
# Features:
|
|
#
|
|
# @unstable: This command is meant for debugging.
|
|
#
|
|
# Returns: accelerator statistics
|
|
#
|
|
# Since: 10.1
|
|
##
|
|
{ 'command': 'x-accel-stats',
|
|
'returns': 'HumanReadableText',
|
|
'features': [ 'unstable' ] }
|
|
|
|
##
|
|
# @MshvInfo:
|
|
#
|
|
# Information about support for MSHV acceleration
|
|
#
|
|
# @enabled: true if MSHV acceleration is active
|
|
#
|
|
# @present: true if MSHV acceleration is built into this executable
|
|
#
|
|
# Since: 10.2.0
|
|
##
|
|
{ 'struct': 'MshvInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
|
|
|
|
##
|
|
# @query-mshv:
|
|
#
|
|
# Return information about MSHV acceleration
|
|
#
|
|
# Returns: @MshvInfo
|
|
#
|
|
# Since: 10.0.92
|
|
#
|
|
# .. qmp-example::
|
|
#
|
|
# -> { "execute": "query-mshv" }
|
|
# <- { "return": { "enabled": true, "present": true } }
|
|
##
|
|
{ 'command': 'query-mshv', 'returns': 'MshvInfo' }
|