mirror of
https://github.com/qemu/qemu.git
synced 2025-08-01 19:42:05 +00:00
qapi/accel: Move definitions related to accelerators in their own file
Extract KVM definitions from machine.json to accelerator.json. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703105540.67664-29-philmd@linaro.org>
This commit is contained in:
parent
187aad2896
commit
18da42ee42
@ -509,6 +509,7 @@ F: accel/Makefile.objs
|
|||||||
F: accel/stubs/Makefile.objs
|
F: accel/stubs/Makefile.objs
|
||||||
F: cpu-common.c
|
F: cpu-common.c
|
||||||
F: cpu-target.c
|
F: cpu-target.c
|
||||||
|
F: qapi/accelerator.json
|
||||||
F: system/cpus.c
|
F: system/cpus.c
|
||||||
|
|
||||||
Apple Silicon HVF CPUs
|
Apple Silicon HVF CPUs
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "monitor/monitor.h"
|
#include "monitor/monitor.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qapi-builtin-visit.h"
|
#include "qapi/qapi-builtin-visit.h"
|
||||||
|
#include "qapi/qapi-commands-accelerator.h"
|
||||||
#include "qapi/qapi-commands-machine.h"
|
#include "qapi/qapi-commands-machine.h"
|
||||||
#include "qobject/qdict.h"
|
#include "qobject/qdict.h"
|
||||||
#include "qapi/string-output-visitor.h"
|
#include "qapi/string-output-visitor.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "hw/mem/memory-device.h"
|
#include "hw/mem/memory-device.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qapi/qapi-builtin-visit.h"
|
#include "qapi/qapi-builtin-visit.h"
|
||||||
|
#include "qapi/qapi-commands-accelerator.h"
|
||||||
#include "qapi/qapi-commands-machine.h"
|
#include "qapi/qapi-commands-machine.h"
|
||||||
#include "qobject/qobject.h"
|
#include "qobject/qobject.h"
|
||||||
#include "qapi/qobject-input-visitor.h"
|
#include "qapi/qobject-input-visitor.h"
|
||||||
|
39
qapi/accelerator.json
Normal file
39
qapi/accelerator.json
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# -*- 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
|
||||||
|
#
|
||||||
|
# Returns: @KvmInfo
|
||||||
|
#
|
||||||
|
# Since: 0.14
|
||||||
|
#
|
||||||
|
# .. qmp-example::
|
||||||
|
#
|
||||||
|
# -> { "execute": "query-kvm" }
|
||||||
|
# <- { "return": { "enabled": true, "present": true } }
|
||||||
|
##
|
||||||
|
{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
|
@ -451,35 +451,6 @@
|
|||||||
##
|
##
|
||||||
{ 'command': 'inject-nmi' }
|
{ 'command': 'inject-nmi' }
|
||||||
|
|
||||||
##
|
|
||||||
# @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
|
|
||||||
#
|
|
||||||
# Returns: @KvmInfo
|
|
||||||
#
|
|
||||||
# Since: 0.14
|
|
||||||
#
|
|
||||||
# .. qmp-example::
|
|
||||||
#
|
|
||||||
# -> { "execute": "query-kvm" }
|
|
||||||
# <- { "return": { "enabled": true, "present": true } }
|
|
||||||
##
|
|
||||||
{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# @NumaOptionsType:
|
# @NumaOptionsType:
|
||||||
#
|
#
|
||||||
|
@ -57,6 +57,7 @@ qapi_all_modules = [
|
|||||||
]
|
]
|
||||||
if have_system
|
if have_system
|
||||||
qapi_all_modules += [
|
qapi_all_modules += [
|
||||||
|
'accelerator',
|
||||||
'acpi',
|
'acpi',
|
||||||
'audio',
|
'audio',
|
||||||
'cryptodev',
|
'cryptodev',
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
{ 'include': 'run-state.json' }
|
{ 'include': 'run-state.json' }
|
||||||
{ 'include': 'crypto.json' }
|
{ 'include': 'crypto.json' }
|
||||||
{ 'include': 'job.json' }
|
{ 'include': 'job.json' }
|
||||||
|
{ 'include': 'accelerator.json' }
|
||||||
{ 'include': 'block.json' }
|
{ 'include': 'block.json' }
|
||||||
{ 'include': 'block-export.json' }
|
{ 'include': 'block-export.json' }
|
||||||
{ 'include': 'char.json' }
|
{ 'include': 'char.json' }
|
||||||
|
Loading…
Reference in New Issue
Block a user