On Fri, Jan 17, 2025 at 08:39:59PM +0100, Paolo Bonzini wrote:
> Date: Fri, 17 Jan 2025 20:39:59 +0100
> From: Paolo Bonzini <pbonz...@redhat.com>
> Subject: [PATCH 06/10] rust: qom: allow initializing interface vtables
> X-Mailer: git-send-email 2.47.1
> 
> Unlike regular classes, interface vtables can only be obtained via
> object_class_dynamic_cast.  Provide a wrapper that allows accessing
> the vtable and pass it to a ClassInitImpl implementation, for example
> ClassInitImpl<ResettableClass>.
> 
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  rust/qemu-api/src/prelude.rs |  1 +
>  rust/qemu-api/src/qom.rs     | 45 ++++++++++++++++++++++++++++++++++--
>  2 files changed, 44 insertions(+), 2 deletions(-)
>

Reviewed-by: Zhao Liu <zhao1....@intel.com>


Reply via email to