Home
last modified time | relevance | path

Searched hist:"0 fcccf3ff04a54d597bffcb7a42668c52a7dcec0" (Results 1 – 3 of 3) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dqom.rs0fcccf3ff04a54d597bffcb7a42668c52a7dcec0 Fri Jan 17 11:00:01 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: qom: add reference counting functionality

Add a smart pointer that allows to add and remove references from
QOM objects. It's important to note that while all QOM objects have a
reference count, in practice not all of them have their lifetime guarded
by it. Embedded objects, specifically, are confined to the lifetime of
the owner.

When writing Rust bindings this is important, because embedded objects are
*never* used through the "Owned<>" smart pointer that is introduced here.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
H A Dvmstate.rs0fcccf3ff04a54d597bffcb7a42668c52a7dcec0 Fri Jan 17 11:00:01 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: qom: add reference counting functionality

Add a smart pointer that allows to add and remove references from
QOM objects. It's important to note that while all QOM objects have a
reference count, in practice not all of them have their lifetime guarded
by it. Embedded objects, specifically, are confined to the lifetime of
the owner.

When writing Rust bindings this is important, because embedded objects are
*never* used through the "Owned<>" smart pointer that is introduced here.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
/qemu/rust/qemu-api/tests/
H A Dtests.rs0fcccf3ff04a54d597bffcb7a42668c52a7dcec0 Fri Jan 17 11:00:01 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: qom: add reference counting functionality

Add a smart pointer that allows to add and remove references from
QOM objects. It's important to note that while all QOM objects have a
reference count, in practice not all of them have their lifetime guarded
by it. Embedded objects, specifically, are confined to the lifetime of
the owner.

When writing Rust bindings this is important, because embedded objects are
*never* used through the "Owned<>" smart pointer that is introduced here.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>