]> Git Repo - qemu.git/commitdiff
qapi: Restrict 'query-kvm' command to machine code
authorPhilippe Mathieu-Daudé <[email protected]>
Mon, 12 Oct 2020 12:15:35 +0000 (14:15 +0200)
committerMarkus Armbruster <[email protected]>
Wed, 21 Oct 2020 03:00:44 +0000 (05:00 +0200)
Restricting query-kvm to machine.json pulls slightly
less QAPI-generated code into user-mode and tools.

Acked-by: Paolo Bonzini <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20201012121536.3381997[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
qapi/machine.json
qapi/misc.json

index 5a3bbcae01b3c7627badacf84bb5f1530e017326..7c9a263778d8b5757d828f7f833de517ea3c5ffc 100644 (file)
 ##
 { '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:
 #
index 9fa702b0f661e7bc2e7c96e43199c0df2f5a7fd9..363115c1edb65cd40352258370e33b5727234f61 100644 (file)
 ##
 { '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:
 #
This page took 0.025573 seconds and 4 git commands to generate.