[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 5/9] qapi/misc: Restrict query-vm-generation-id command to mac
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 5/9] qapi/misc: Restrict query-vm-generation-id command to machine code |
Date: |
Mon, 25 May 2020 17:06:36 +0200 |
Acked-by: Igor Mammedov <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
qapi/machine.json | 20 ++++++++++++++++++++
qapi/misc.json | 21 ---------------------
hw/acpi/vmgenid.c | 2 +-
stubs/vmgenid.c | 2 +-
4 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/qapi/machine.json b/qapi/machine.json
index ae42d69495..545ecb9a55 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -421,6 +421,26 @@
##
{ 'command': 'query-target', 'returns': 'TargetInfo' }
+##
+# @GuidInfo:
+#
+# GUID information.
+#
+# @guid: the globally unique identifier
+#
+# Since: 2.9
+##
+{ 'struct': 'GuidInfo', 'data': {'guid': 'str'} }
+
+##
+# @query-vm-generation-id:
+#
+# Show Virtual Machine Generation ID
+#
+# Since: 2.9
+##
+{ 'command': 'query-vm-generation-id', 'returns': 'GuidInfo' }
+
##
# @LostTickPolicy:
#
diff --git a/qapi/misc.json b/qapi/misc.json
index 26b5115638..b43fe7c602 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -1414,24 +1414,3 @@
#
##
{ 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
-
-##
-# @GuidInfo:
-#
-# GUID information.
-#
-# @guid: the globally unique identifier
-#
-# Since: 2.9
-##
-{ 'struct': 'GuidInfo', 'data': {'guid': 'str'} }
-
-##
-# @query-vm-generation-id:
-#
-# Show Virtual Machine Generation ID
-#
-# Since: 2.9
-##
-{ 'command': 'query-vm-generation-id', 'returns': 'GuidInfo' }
-
diff --git a/hw/acpi/vmgenid.c b/hw/acpi/vmgenid.c
index 2df7623d74..2b26bacaf8 100644
--- a/hw/acpi/vmgenid.c
+++ b/hw/acpi/vmgenid.c
@@ -12,7 +12,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include "qapi/qapi-commands-machine.h"
#include "qemu/module.h"
#include "hw/acpi/acpi.h"
#include "hw/acpi/aml-build.h"
diff --git a/stubs/vmgenid.c b/stubs/vmgenid.c
index 568e42b064..bfad656c6c 100644
--- a/stubs/vmgenid.c
+++ b/stubs/vmgenid.c
@@ -1,6 +1,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
-#include "qapi/qapi-commands-misc.h"
+#include "qapi/qapi-commands-machine.h"
#include "qapi/qmp/qerror.h"
GuidInfo *qmp_query_vm_generation_id(Error **errp)
--
2.21.3
- [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, (continued)
- [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Philippe Mathieu-Daudé, 2020/05/25
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, David Hildenbrand, 2020/05/26
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Markus Armbruster, 2020/05/26
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Markus Armbruster, 2020/05/26
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Markus Armbruster, 2020/05/27
- Re: [PATCH v3 4/9] qapi/misc: Restrict balloon-related commands to machine code, Philippe Mathieu-Daudé, 2020/05/27
[PATCH v3 5/9] qapi/misc: Restrict query-vm-generation-id command to machine code,
Philippe Mathieu-Daudé <=
[PATCH v3 6/9] qapi/misc: Move query-uuid command to machine code, Philippe Mathieu-Daudé, 2020/05/25
[PATCH v3 7/9] qapi/misc: Restrict ACPI commands to machine code, Philippe Mathieu-Daudé, 2020/05/25
[PATCH v3 8/9] qapi/misc: Restrict PCI commands to machine code, Philippe Mathieu-Daudé, 2020/05/25
[PATCH v3 9/9] qapi/misc: Restrict device memory commands to machine code, Philippe Mathieu-Daudé, 2020/05/25