Re: [PATCH 06/10] rust: qom: allow initializing interface vtables

2025-01-27 Thread Zhao Liu
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 > Subject: [PATCH 06/10] rust: qom: allow initializing interface vtables > X-Mailer: git-send-email 2.47.1 > > Unlike regular classes, interface v

[PATCH 06/10] rust: qom: allow initializing interface vtables

2025-01-17 Thread Paolo Bonzini
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. Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/prelude.rs | 1 + rust/q