<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/qemu.git/authz/listfile.c, branch master</title>
<subtitle>QEMU main repository</subtitle>
<id>https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=master</id>
<link rel='self' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/'/>
<updated>2026-05-21T11:39:54+00:00</updated>
<entry>
<title>qom: drop user_creatable_add_type method</title>
<updated>2026-05-21T11:39:54+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
<email>berrange@redhat.com</email>
</author>
<published>2026-04-17T16:02:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=7b0376d24ce34893a9512587d1d82a6e07680e6d'/>
<id>urn:sha1:7b0376d24ce34893a9512587d1d82a6e07680e6d</id>
<content type='text'>
This can be replaced by object_new_with_props_from_qdict, which does
functionally the same job, but the caller does not own the returned
reference, instead the parent object owns it.

In one case we can use object_new_with_props_from_qdict_owned instead
since the object is not intended to have any parent.

Tested-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>qom: Make InterfaceInfo[] uses const</title>
<updated>2025-04-25T15:00:41+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2025-04-23T16:46:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=2cd09e47aa522dfc7bb206f13d6dccb68dd09887'/>
<id>urn:sha1:2cd09e47aa522dfc7bb206f13d6dccb68dd09887</id>
<content type='text'>
Mechanical change using:

  $ sed -i -E 's/\(InterfaceInfo.?\[/\(const InterfaceInfo\[/g' \
              $(git grep -lE '\(InterfaceInfo.?\[\]\)')

Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-Id: &lt;20250424194905.82506-7-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>qom: Have class_init() take a const data argument</title>
<updated>2025-04-25T15:00:41+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2025-02-09T22:47:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=12d1a768bdfea6e27a3a829228840d72507613a1'/>
<id>urn:sha1:12d1a768bdfea6e27a3a829228840d72507613a1</id>
<content type='text'>
Mechanical change using gsed, then style manually adapted
to pass checkpatch.pl script.

Suggested-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20250424194905.82506-4-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>qapi: Move include/qapi/qmp/ to include/qobject/</title>
<updated>2025-02-10T14:33:16+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
<email>berrange@redhat.com</email>
</author>
<published>2024-11-18T15:12:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=407bc4bf9027f7ac4333e47cd900d773b99a23e3'/>
<id>urn:sha1:407bc4bf9027f7ac4333e47cd900d773b99a23e3</id>
<content type='text'>
The general expectation is that header files should follow the same
file/path naming scheme as the corresponding source file. There are
various historical exceptions to this practice in QEMU, with one of
the most notable being the include/qapi/qmp/ directory. Most of the
headers there correspond to source files in qobject/.

This patch corrects most of that inconsistency by creating
include/qobject/ and moving the headers for qobject/ there.

This also fixes MAINTAINERS for include/qapi/qmp/dispatch.h:
scripts/get_maintainer.pl now reports "QAPI" instead of "No
maintainers found".

Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Reviewed-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Acked-by: Halil Pasic &lt;pasic@linux.ibm.com&gt; #s390x
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-ID: &lt;20241118151235.2665921-2-armbru@redhat.com&gt;
[Rebased]
</content>
</entry>
<entry>
<title>error: Drop superfluous #include "qapi/qmp/qerror.h"</title>
<updated>2023-02-23T12:56:14+00:00</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2023-02-07T07:51:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=6f1e91f716a96651feae89dfd674b2ea3bf8e282'/>
<id>urn:sha1:6f1e91f716a96651feae89dfd674b2ea3bf8e282</id>
<content type='text'>
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20230207075115.1525-2-armbru@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Juan Quintela &lt;quintela@redhat.com&gt;
Reviewed-by: Konstantin Kostiuk &lt;kkostiuk@redhat.com&gt;
</content>
</entry>
<entry>
<title>authz-list-file: Improve an error message</title>
<updated>2020-11-18T10:51:35+00:00</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2020-11-13T06:23:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=8e26ae7bb58d10c04599eabd265217da050514a4'/>
<id>urn:sha1:8e26ae7bb58d10c04599eabd265217da050514a4</id>
<content type='text'>
When qauthz_list_file_load() rejects JSON values other than JSON
object with a rather confusing error message:

    $ echo 1 | qemu-system-x86_64 -nodefaults -S -display none  -object authz-list-file,id=authz0,filename=/dev/stdin
    qemu-system-x86_64: -object authz-list-file,id=authz0,filename=/dev/stdin: Invalid parameter type for 'obj', expected: dict

Improve to

    qemu-system-x86_64: -object authz-list-file,id=authz0,filename=/dev/stdin: File '/dev/stdin' must contain a JSON object

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>authz-list-file: Fix file read error handling</title>
<updated>2020-11-18T10:51:35+00:00</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2020-11-13T06:23:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=2b37e9f84372b5c98ef0ba114ce016953e47bc3c'/>
<id>urn:sha1:2b37e9f84372b5c98ef0ba114ce016953e47bc3c</id>
<content type='text'>
The Error ** argument must be NULL, &amp;error_abort, &amp;error_fatal, or a
pointer to a variable containing NULL.  Passing an argument of the
latter kind twice without clearing it in between is wrong: if the
first call sets an error, it no longer points to NULL for the second
call.

qauthz_list_file_complete() is wrong that way: it passes @errp to
qauthz_list_file_complete() without checking for failure.  If it runs
into another failure, it trips error_setv()'s assertion.  Reproducer:

    $ qemu-system-x86_64 -nodefaults -S -display none -object authz-list-file,id=authz0,filename=
    qemu-system-x86_64: ../util/error.c:59: error_setv: Assertion `*errp == NULL' failed.
    Aborted (core dumped)

Fix it to check for failure.

Fixes: 55d869846de802a16af1a50584c51737bd664387
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>authz: Fix Lesser GPL version number</title>
<updated>2020-10-29T09:57:37+00:00</updated>
<author>
<name>Chetan Pant</name>
<email>chetan4windows@gmail.com</email>
</author>
<published>2020-10-14T13:49:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=036a80cdf7cc8a01106b7b49da6e4830d552f3d7'/>
<id>urn:sha1:036a80cdf7cc8a01106b7b49da6e4830d552f3d7</id>
<content type='text'>
There is no "version 2" of the "Lesser" General Public License.
It is either "GPL version 2.0" or "Lesser GPL version 2.1".
This patch replaces all occurrences of "Lesser GPL version 2" with
"Lesser GPL version 2.1" in comment section.

Signed-off-by: Chetan Pant &lt;chetan4windows@gmail.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>authz-list-file: Fix crash when filename is not set</title>
<updated>2020-10-13T19:56:30+00:00</updated>
<author>
<name>Eduardo Habkost</name>
<email>ehabkost@redhat.com</email>
</author>
<published>2020-10-08T20:27:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=14b394853606ab79f1d71f3bbbb4ccaab6538c8f'/>
<id>urn:sha1:14b394853606ab79f1d71f3bbbb4ccaab6538c8f</id>
<content type='text'>
Fix the following crash:

  $ qemu-system-x86_64 -object authz-list-file,id=obj0
  qemu-system-x86_64: -object authz-list-file,id=obj0: GLib: g_file_get_contents: assertion 'filename != NULL' failed
  Segmentation fault (core dumped)

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Li Qiang &lt;liq3ea@gmail.com&gt;
Message-Id: &lt;20201008202713.1416823-2-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE</title>
<updated>2020-09-18T18:12:32+00:00</updated>
<author>
<name>Eduardo Habkost</name>
<email>ehabkost@redhat.com</email>
</author>
<published>2020-09-16T18:25:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=c734cd40a10943753a4d015c9d0a6c08c8f0159e'/>
<id>urn:sha1:c734cd40a10943753a4d015c9d0a6c08c8f0159e</id>
<content type='text'>
The requirement to specify the parent class type makes the macro
harder to use and easy to misuse (silent bugs can be introduced
if the wrong struct type is specified).

Simplify the macro by just not declaring any class struct,
allowing us to remove the class_size field from the TypeInfo
variables for those types.

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20200916182519.415636-3-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
</feed>
