Skip to contentSkip to conversation

QMP queue

GIT PULL Luiz Capitulino 1 participant 3 messages Nov 12, 2013

lore
Share & tools
lore
#0 lore raw

The following changes since commit 964668b03d26f0b5baa5e5aff0c966f4fcb76e9e:

Update version for 1.7.0-rc0 release (2013-11-06 21:49:39 -0800)

are available in the git repository at:

git://repo.or.cz/qemu/qmp-unstable.git queue/qmp

for you to fetch changes up to dce07e0b2b172ccce43955fdee2149ab2413251b:

MAINTAINERS: add git tree info for HMP, QMP and QAPI (2013-11-11 10:02:21 -0500)

----------------------------------------------------------------
Luiz Capitulino (1):
MAINTAINERS: add git tree info for HMP, QMP and QAPI

Richard Henderson (1):
Adjust qapi-visit for python-2.4.3

 MAINTAINERS           |  4 ++++
 scripts/qapi-visit.py | 17 ++++++++++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.1.4
#1 lore raw

[Qemu-devel] [PULL 1/2] Adjust qapi-visit for python-2.4.3

From: Richard Henderson <[email protected]>

We say we support python 2.4, but python 2.4.3 does not support the "expr if test else expr" syntax used here.

This allows QEMU to compile on RHEL 5.3, the last release for ia64.

---
 scripts/qapi-visit.py | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
scripts/qapi-visit.py +14 -3
index c39e628..65f1a54 100644
@@ -20,7 +20,10 @@ import errno
 def generate_visit_struct_fields(name, field_prefix, fn_prefix, members, base = None):
     substructs = []
     ret = ''
-    full_name = name if not fn_prefix else "%s_%s" % (name, fn_prefix)
+    if not fn_prefix:
+        full_name = name
+    else:
+        full_name = "%s_%s" % (name, fn_prefix)
 
     for argname, argentry, optional, structured in parse_args(members):
         if structured:
@@ -97,7 +100,10 @@ if (!error_is_set(errp)) {
 ''')
     push_indent()
 
-    full_name = name if not field_prefix else "%s_%s" % (field_prefix, name)
+    if not field_prefix:
+        full_name = name
+    else:
+        full_name = "%s_%s" % (field_prefix, name)
 
     if len(field_prefix):
         ret += mcgen('''
@@ -283,12 +289,17 @@ void visit_type_%(name)s(Visitor *m, %(name)s ** obj, const char *name, Error **
             name=name)
 
     pop_indent()
+
+    if not discriminator:
+        desc_type = "type"
+    else:
+        desc_type = discriminator
     ret += mcgen('''
         visit_type_%(name)sKind(m, &(*obj)->kind, "%(type)s", &err);
         if (!err) {
             switch ((*obj)->kind) {
 ''',
-                 name=name, type="type" if not discriminator else discriminator)
+                 name=name, type=desc_type)
 
     for key in members:
         if not discriminator:
Signature · 1 line
1.8.1.4
#2 lore raw

[Qemu-devel] [PULL 2/2] MAINTAINERS: add git tree info for HMP, QMP and QAPI

In reply to Luiz Capitulino
---
 MAINTAINERS | 4 ++++
 1 file changed, 4 insertions(+)
MAINTAINERS +4 -0
index 77edacf..02b85ee 100644
@@ -699,6 +699,7 @@ S: Supported
 F: monitor.c
 F: hmp.c
 F: hmp-commands.hx
+T: git git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
 
 Network device layer
 M: Anthony Liguori <[email protected]>
@@ -720,6 +721,7 @@ M: Luiz Capitulino <[email protected]>
 M: Michael Roth <[email protected]>
 S: Supported
 F: qapi/
+T: git git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
 
 QAPI Schema
 M: Eric Blake <[email protected]>
@@ -727,6 +729,7 @@ M: Luiz Capitulino <[email protected]>
 M: Markus Armbruster <[email protected]>
 S: Supported
 F: qapi-schema.json
+T: git git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
 
 QMP
 M: Luiz Capitulino <[email protected]>
@@ -735,6 +738,7 @@ F: qmp.c
 F: monitor.c
 F: qmp-commands.hx
 F: QMP/
+T: git git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
 
 SLIRP
 M: Jan Kiszka <[email protected]>
Signature · 1 line
1.8.1.4