<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/qobject, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/qobject?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/qobject?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2023-05-22T08:21:01Z</updated>
<entry>
<title>docs/interop: Convert qmp-spec.txt to rST</title>
<updated>2023-05-22T08:21:01Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2023-05-15T16:22:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d56572584d9a5414c6a55c3f6b7ecce4b098926b'/>
<id>urn:sha1:d56572584d9a5414c6a55c3f6b7ecce4b098926b</id>
<content type='text'>
Convert the qmp-spec.txt document to restructuredText.
Notable points about the conversion:
 * numbers at the start of section headings are removed, to match
   the style of the rest of the manual
 * cross-references to other sections or documents are hyperlinked
 * various formatting tweaks (notably the examples, which need the
   -&gt; and &lt;- prefixed so the QMP code-block lexer will accept them)
 * English prose fixed in a few places

Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-Id: &lt;20230515162245.3964307-2-peter.maydell@linaro.org&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
[.. code-block:: dumbed down to :: to work around CI failure]
</content>
</entry>
<entry>
<title>include/qapi: add g_autoptr support for qobject types</title>
<updated>2022-04-06T08:50:38Z</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2022-03-23T15:57:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d709bbf3b17f43c91e82c3807a39f2c349d27934'/>
<id>urn:sha1:d709bbf3b17f43c91e82c3807a39f2c349d27934</id>
<content type='text'>
Need wrappers for qobject_unref() calls, which is a macro.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220323155743.1585078-10-marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>Replace GCC_FMT_ATTR with G_GNUC_PRINTF</title>
<updated>2022-03-22T10:40:51Z</updated>
<author>
<name>Marc-André Lureau</name>
<email>marcandre.lureau@redhat.com</email>
</author>
<published>2022-02-20T16:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9edc6313da34699ebd2bae4573ea22339b26450a'/>
<id>urn:sha1:9edc6313da34699ebd2bae4573ea22339b26450a</id>
<content type='text'>
One less qemu-specific macro. It also helps to make some headers/units
only depend on glib, and thus moved in standalone projects eventually.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>block-qdict: Fix -Werror=maybe-uninitialized build failure</title>
<updated>2022-03-21T14:44:44Z</updated>
<author>
<name>Murilo Opsfelder Araujo</name>
<email>muriloo@linux.ibm.com</email>
</author>
<published>2022-03-11T22:16:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=79854b95446396c8e7f397800c5d86c3d9a7540d'/>
<id>urn:sha1:79854b95446396c8e7f397800c5d86c3d9a7540d</id>
<content type='text'>
Building QEMU on Fedora 37 (Rawhide Prerelease) ppc64le failed with the
following error:

    $ ../configure --prefix=/usr/local/qemu-disabletcg --target-list=ppc-softmmu,ppc64-softmmu --disable-tcg --disable-linux-user
    ...
    $ make -j$(nproc)
    ...
    In file included from /root/qemu/include/qapi/qmp/qdict.h:16,
                     from /root/qemu/include/block/qdict.h:13,
                     from ../qobject/block-qdict.c:11:
    /root/qemu/include/qapi/qmp/qobject.h: In function ‘qdict_array_split’:
    /root/qemu/include/qapi/qmp/qobject.h:49:17: error: ‘subqdict’ may be used uninitialized [-Werror=maybe-uninitialized]
       49 |     typeof(obj) _obj = (obj);                                   \
          |                 ^~~~
    ../qobject/block-qdict.c:227:16: note: ‘subqdict’ declared here
      227 |         QDict *subqdict;
          |                ^~~~~~~~
    cc1: all warnings being treated as errors

Fix build failure by expanding the ternary operation.
Tested with `make check-unit` (the check-block-qdict test passed).

Signed-off-by: Murilo Opsfelder Araujo &lt;muriloo@linux.ibm.com&gt;
Cc: Kevin Wolf &lt;kwolf@redhat.com&gt;
Cc: Hanna Reitz &lt;hreitz@redhat.com&gt;
Cc: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20220311221634.58288-1-muriloo@linux.ibm.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Tested-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>qobject: braces {} are necessary for all arms of this statement</title>
<updated>2021-02-04T12:20:29Z</updated>
<author>
<name>Zhang Han</name>
<email>zhanghan64@huawei.com</email>
</author>
<published>2020-12-28T07:11:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1841f0112c4d8a0a561462eed25fc4357fe40afc'/>
<id>urn:sha1:1841f0112c4d8a0a561462eed25fc4357fe40afc</id>
<content type='text'>
Add braces {} for arms of if/for statement

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-5-zhanghan64@huawei.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@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>qobject: spaces required around that operators</title>
<updated>2021-02-04T12:20:29Z</updated>
<author>
<name>Zhang Han</name>
<email>zhanghan64@huawei.com</email>
</author>
<published>2020-12-28T07:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=f3d71c6e8d1ce6445c38e2247938903c1f661154'/>
<id>urn:sha1:f3d71c6e8d1ce6445c38e2247938903c1f661154</id>
<content type='text'>
Add spaces around operators.

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-4-zhanghan64@huawei.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>qobject: code indent should never use tabs</title>
<updated>2021-02-04T12:20:29Z</updated>
<author>
<name>Zhang Han</name>
<email>zhanghan64@huawei.com</email>
</author>
<published>2020-12-28T07:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=be08fb1897145e5fc3d11e05c2896b259887d9aa'/>
<id>urn:sha1:be08fb1897145e5fc3d11e05c2896b259887d9aa</id>
<content type='text'>
Transfer tabs to spaces.

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-3-zhanghan64@huawei.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>qobject: open brace '{' following struct go on the same line</title>
<updated>2021-02-04T12:20:28Z</updated>
<author>
<name>Zhang Han</name>
<email>zhanghan64@huawei.com</email>
</author>
<published>2020-12-28T07:11:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5086c9973a1303cce4791f3c244256e579191410'/>
<id>urn:sha1:5086c9973a1303cce4791f3c244256e579191410</id>
<content type='text'>
Put open brace '{' on the same line of struct.

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-2-zhanghan64@huawei.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@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>qobject: Make QString immutable</title>
<updated>2020-12-19T09:39:41Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2020-12-11T17:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=4ac76ba414ecb94f086d73621775d8b38b6f0a43'/>
<id>urn:sha1:4ac76ba414ecb94f086d73621775d8b38b6f0a43</id>
<content type='text'>
The functions to modify a QString's string are all unused now.  Drop
them, and make the string immutable.  Saves 16 bytes per QString on my
system.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20201211171152.146877-21-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>json: Use GString instead of QString to accumulate strings</title>
<updated>2020-12-19T09:39:23Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2020-12-11T17:11:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=68af4cc1213ec6057ac47765985b6704c6be7fd7'/>
<id>urn:sha1:68af4cc1213ec6057ac47765985b6704c6be7fd7</id>
<content type='text'>
QString supports modifying its string, but it's quite limited: you can
only append.  The remaining callers use it for building an initial
string, never for modifying it later.

Change parse_string() to do build the initial string with GString.
This is another step towards making QString immutable.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20201211171152.146877-18-armbru@redhat.com&gt;
</content>
</entry>
</feed>
