mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 05:35:39 +00:00
qapi/accel: Allow to query mshv capabilities
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>
This commit is contained in:
committed by
Paolo Bonzini
parent
efc4093358
commit
e7b08dfb90
@@ -54,3 +54,32 @@
|
||||
{ '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' }
|
||||
|
||||
Reference in New Issue
Block a user