qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 17/26] rust: qom: put class_init together from multiple Class


From: Zhao Liu
Subject: Re: [PATCH 17/26] rust: qom: put class_init together from multiple ClassInitImpl<>
Date: Thu, 12 Dec 2024 17:15:22 +0800

> Since CLASS_BASE_INIT applies to the type that is being defined,
> and only to it, move it to ObjectImpl.

It makes sense since class_base_init() is used when subclass is being
initialized.

> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  rust/hw/char/pl011/src/device.rs  | 19 +------
>  rust/qemu-api/src/definitions.rs  | 85 +++++++++++++++++++++++--------
>  rust/qemu-api/src/device_class.rs | 50 +++++++-----------
>  rust/qemu-api/src/sysbus.rs       | 18 ++++++-
>  rust/qemu-api/tests/tests.rs      |  9 +---
>  5 files changed, 101 insertions(+), 80 deletions(-)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]