<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/scripts/qapi, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/scripts/qapi?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/scripts/qapi?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-07-13T09:19:18+00:00</updated>
<entry>
<title>qapi: Avoid generating C identifier 'linux'</title>
<updated>2022-07-13T09:19:18+00:00</updated>
<author>
<name>zhenwei pi</name>
</author>
<published>2022-07-07T00:56:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fd89c8ab091bf7faeea04bef51d4296a53a35279'/>
<id>urn:sha1:fd89c8ab091bf7faeea04bef51d4296a53a35279</id>
<content type='text'>
'linux' is not usable as identifier, because C compilers targeting
Linux predefine it as a macro expanding to 1.  Add it to
@polluted_words. 'unix' is already there.

Suggested-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: zhenwei pi &lt;pizhenwei@bytedance.com&gt;
Message-Id: &lt;20220707005602.696557-2-pizhenwei@bytedance.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Konstantin Kostiuk &lt;kkostiuk@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi/expr: Enforce feature naming rules again</title>
<updated>2022-05-16T05:29:50+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2022-05-10T06:16:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9e191d33688125c0cadff96b389126664054046f'/>
<id>urn:sha1:9e191d33688125c0cadff96b389126664054046f</id>
<content type='text'>
Commit e42648dccd "qapi/expr.py: Remove single-letter variable"
accidentally removed the check for "only lower case letters and
hyphens".  Restore it.

Fixes: e42648dccdd1defe8f35f247966cd7283f865cd6
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20220510061645.3209195-2-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi-schema: support alternates with array type</title>
<updated>2022-04-21T08:11:25+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2022-03-21T16:42:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a58069494ded1282c36b7fca8d67bf487c160983'/>
<id>urn:sha1:a58069494ded1282c36b7fca8d67bf487c160983</id>
<content type='text'>
Detect array types as alternate branches, and turn the JSON list into
a QAPISchemaArrayType.  Array types in an alternate are represented with
QTYPE_QLIST in the type field.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;20220321164243.200569-2-pbonzini@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qapi: minor delinting</title>
<updated>2022-02-28T10:39:35+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2022-02-11T18:36:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=90254ec46dbf9c844f913a23c88ee24fb969c49b'/>
<id>urn:sha1:90254ec46dbf9c844f913a23c88ee24fb969c49b</id>
<content type='text'>
Get isort and pylint tools passing again.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-Id: &lt;20220211183650.2946895-1-jsnow@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
[Comment explaining good-names-rgxs tweaked]
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: generate trace events by default</title>
<updated>2022-01-27T14:17:35+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-01-26T16:11:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=761a1a488e67a77858f3645a43fbdfe6208b51ce'/>
<id>urn:sha1:761a1a488e67a77858f3645a43fbdfe6208b51ce</id>
<content type='text'>
We don't generate trace events for tests/ and qga/ because that it is
not simple and not necessary. We have corresponding comments in both
tests/meson.build and qga/meson.build.

Still to not miss possible future qapi code generation call, and not to
forget to enable trace events generation, let's enable it by default.
So, turn option --gen-trace into opposite --no-trace-events and use new
option only in tests/ and qga/ where we already have good comments why
we don't generate trace events code.

Note that this commit enables trace-events generation for qapi-gen.py
call from tests/qapi-schema/meson.build and storage-daemon/meson.build.
Still, both are kind of noop: tests/qapi-schema/ doesn't seem to
generate any QMP command code and no .trace-events files anyway,
storage-daemon/ uses common QMP command implementations and just
generate empty .trace-events

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20220126161130.3240892-8-vsementsov@virtuozzo.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi/commands: Optionally generate trace for QMP commands</title>
<updated>2022-01-27T10:25:52+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-01-26T16:11:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bd2017bc41566a94fbdfd8728b6e805ce2a2c124'/>
<id>urn:sha1:bd2017bc41566a94fbdfd8728b6e805ce2a2c124</id>
<content type='text'>
Add trace generation disabled by default and new option --gen-trace to
enable it.  The next commit will enable it for qapi/, but not for qga/
and tests/.  Making it work for the latter two would involve some Meson
hackery to ensure we generate the trace-events files before trace-tool
uses them.  Since we don't actually support tracing there, we'll bypass
that problem.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20220126161130.3240892-4-vsementsov@virtuozzo.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
[Superfluous #include dropped]
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi/commands: refactor error handling code</title>
<updated>2022-01-27T10:25:09+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-01-26T16:11:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=167d913f34aa469fa30b0c51a04d8d2b9a5f1fa5'/>
<id>urn:sha1:167d913f34aa469fa30b0c51a04d8d2b9a5f1fa5</id>
<content type='text'>
Move error_propagate() to if (err) and make "if (err)" block mandatory.
This is to simplify further commit, which will bring trace events
generation for QMP commands.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20220126161130.3240892-3-vsementsov@virtuozzo.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi/gen: Add FOO.trace-events output module</title>
<updated>2022-01-27T10:24:18+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-01-26T16:11:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4e86df17326d2afaf74622c082d906ed3f96d1d7'/>
<id>urn:sha1:4e86df17326d2afaf74622c082d906ed3f96d1d7</id>
<content type='text'>
We are going to generate trace events for QMP commands. We should
generate both trace_*() function calls and trace-events files listing
events for trace generator.

So, add an output module FOO.trace-events for each FOO schema module.

Since we're going to add trace events only to command marshallers,
make the trace-events output optional, so we don't generate so many
useless empty files.

Currently nobody set add_trace_events to True, so new functionality is
disabled. It will be enabled for QAPISchemaGenCommandVisitor
in a further commit.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20220126161130.3240892-2-vsementsov@virtuozzo.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: Extend -compat to set policy for unstable interfaces</title>
<updated>2021-10-29T19:28:01+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2021-10-28T10:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=57df0dff1a1f4c846aa74a082bfd595a8a990015'/>
<id>urn:sha1:57df0dff1a1f4c846aa74a082bfd595a8a990015</id>
<content type='text'>
New option parameters unstable-input and unstable-output set policy
for unstable interfaces just like deprecated-input and
deprecated-output set policy for deprecated interfaces (see commit
6dd75472d5 "qemu-options: New -compat to set policy for deprecated
interfaces").  This is intended for testing users of the management
interfaces.  It is experimental.

For now, this covers only syntactic aspects of QMP, i.e. stuff tagged
with feature 'unstable'.  We may want to extend it to cover semantic
aspects, or the command line.

Note that there is no good way for management application to detect
presence of these new option parameters: they are not visible output
of query-qmp-schema or query-command-line-options.  Tolerable, because
it's meant for testing.  If running with -compat fails, skip the test.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Acked-by: John Snow &lt;jsnow@redhat.com&gt;
Message-Id: &lt;20211028102520.747396-10-armbru@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
[Doc comments fixed up]
</content>
</entry>
<entry>
<title>qapi: Generalize enum member policy checking</title>
<updated>2021-10-29T16:24:56+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2021-10-28T10:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c8688760437aaf4bfa9012ff5aef8ab1c92a38e1'/>
<id>urn:sha1:c8688760437aaf4bfa9012ff5aef8ab1c92a38e1</id>
<content type='text'>
The code to check enumeration value policy can see special feature
flag 'deprecated' in QEnumLookup member flags[value].  I want to make
feature flag 'unstable' visible there as well, so I can add policy for
it.

Instead of extending flags[], replace it by @special_features (a
bitset of QapiSpecialFeature), because that's how special features get
passed around elsewhere.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Acked-by: John Snow &lt;jsnow@redhat.com&gt;
Message-Id: &lt;20211028102520.747396-8-armbru@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
</feed>
