qobject: make refcount atomicThe Rust bindings for QObject will only operate on complete objects,treating them as immutable as long as the Rust QObject is live.With that constraint, it is trivia
qobject: make refcount atomicThe Rust bindings for QObject will only operate on complete objects,treating them as immutable as long as the Rust QObject is live.With that constraint, it is trivial for Rust code to treat QObjects asthread-safe; all that's needed is to make reference count operationsatomic. Do the same when the C code adds or removes references, sincewe don't really know what the Rust code is up to; of course C code willhave to agree with not making changes to the QObjects after they'vebeen passed to Rust code.Reviewed-by: Zhao Liu <zhao1.liu@intel.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
tests/qtest: Add qtest for for ASPEED GPIO gpio-set property - Added qtests to test gpio-set property for ASPEED. - Added function to get uint in qdict.Signed-off-by: Felix Wu <flwu@google.com>
tests/qtest: Add qtest for for ASPEED GPIO gpio-set property - Added qtests to test gpio-set property for ASPEED. - Added function to get uint in qdict.Signed-off-by: Felix Wu <flwu@google.com>Reviewed-by: Cédric Le Goater <clg@redhat.com>Link: https://lore.kernel.org/qemu-devel/20251015011830.1688468-3-lixiaoyan@google.comSigned-off-by: Cédric Le Goater <clg@redhat.com>
qapi: Move include/qapi/qmp/ to include/qobject/The general expectation is that header files should follow the samefile/path naming scheme as the corresponding source file. There arevarious histo
qapi: Move include/qapi/qmp/ to include/qobject/The general expectation is that header files should follow the samefile/path naming scheme as the corresponding source file. There arevarious historical exceptions to this practice in QEMU, with one ofthe most notable being the include/qapi/qmp/ directory. Most of theheaders there correspond to source files in qobject/.This patch corrects most of that inconsistency by creatinginclude/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 "Nomaintainers found".Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>Reviewed-by: Zhao Liu <zhao1.liu@intel.com>Acked-by: Halil Pasic <pasic@linux.ibm.com> #s390xSigned-off-by: Markus Armbruster <armbru@redhat.com>Message-ID: <20241118151235.2665921-2-armbru@redhat.com>[Rebased]