qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v8 16/16] schema: Drop pointless empty type CpuInfoO


From: Eric Blake
Subject: [Qemu-devel] [PATCH v8 16/16] schema: Drop pointless empty type CpuInfoOther
Date: Sat, 2 Jul 2016 20:58:49 -0600

Now that we can represent an empty type anonymously in a flat
union, we can drop one such empty types that existed solely
for CpuInfo.  However, we can't drop Abort or NetdevNoneOptions,
as those were used by simple unions (remember, for simple unions,
we still have to create a wrapper around a type in order to
parse 'data':{}, rather than being a branch that parses nothing).

Signed-off-by: Eric Blake <address@hidden>

---
v8: tweak commit message
v7: new patch
---
 qapi-schema.json | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/qapi-schema.json b/qapi-schema.json
index 3a7632b..e4b0838 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -846,7 +846,7 @@
             'ppc': 'CpuInfoPPC',
             'mips': 'CpuInfoMIPS',
             'tricore': 'CpuInfoTricore',
-            'other': 'CpuInfoOther' } }
+            'other': {} } }

 ##
 # @CpuInfoX86:
@@ -906,16 +906,6 @@
 { 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } }

 ##
-# @CpuInfoOther:
-#
-# No additional information is available about the virtual CPU
-#
-# Since 2.6
-#
-##
-{ 'struct': 'CpuInfoOther', 'data': { } }
-
-##
 # @query-cpus:
 #
 # Returns a list of information about each virtual CPU.
-- 
2.5.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]