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:
Praveen K Paladugu
2025-09-16 18:48:44 +02:00
committed by Paolo Bonzini
parent efc4093358
commit e7b08dfb90
6 changed files with 73 additions and 0 deletions

View File

@@ -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' }