[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/5] qapi: Restrict 'query-kvm' command to machine code
From: |
Markus Armbruster |
Subject: |
[PULL 4/5] qapi: Restrict 'query-kvm' command to machine code |
Date: |
Wed, 21 Oct 2020 05:32:56 +0200 |
From: Philippe Mathieu-Daudé <philmd@redhat.com>
Restricting query-kvm to machine.json pulls slightly
less QAPI-generated code into user-mode and tools.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20201012121536.3381997-5-philmd@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
qapi/machine.json | 30 ++++++++++++++++++++++++++++++
qapi/misc.json | 30 ------------------------------
2 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/qapi/machine.json b/qapi/machine.json
index 5a3bbcae01..7c9a263778 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -561,6 +561,36 @@
##
{ '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.0
+##
+{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
+
+##
+# @query-kvm:
+#
+# Returns information about KVM acceleration
+#
+# Returns: @KvmInfo
+#
+# Since: 0.14.0
+#
+# Example:
+#
+# -> { "execute": "query-kvm" }
+# <- { "return": { "enabled": true, "present": true } }
+#
+##
+{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
+
##
# @NumaOptionsType:
#
diff --git a/qapi/misc.json b/qapi/misc.json
index 9fa702b0f6..363115c1ed 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -68,36 +68,6 @@
##
{ 'command': 'query-name', 'returns': 'NameInfo', 'allow-preconfig': true }
-##
-# @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.0
-##
-{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
-
-##
-# @query-kvm:
-#
-# Returns information about KVM acceleration
-#
-# Returns: @KvmInfo
-#
-# Since: 0.14.0
-#
-# Example:
-#
-# -> { "execute": "query-kvm" }
-# <- { "return": { "enabled": true, "present": true } }
-#
-##
-{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
-
##
# @IOThreadInfo:
#
--
2.26.2
- [PULL 0/5] QAPI patches patches for 2020-10-21, Markus Armbruster, 2020/10/20
- [PULL 1/5] qapi: Restrict 'inject-nmi' command to machine code, Markus Armbruster, 2020/10/20
- [PULL 4/5] qapi: Restrict 'query-kvm' command to machine code,
Markus Armbruster <=
- [PULL 3/5] qapi: Restrict '(p)memsave' command to machine code, Markus Armbruster, 2020/10/20
- [PULL 2/5] qapi: Restrict 'system wakeup/reset/powerdown' commands to machine.json, Markus Armbruster, 2020/10/20
- [PULL 5/5] qapi: Restrict Xen migration commands to migration.json, Markus Armbruster, 2020/10/20
- Re: [PULL 0/5] QAPI patches patches for 2020-10-21, Peter Maydell, 2020/10/21