[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>
- Re: [PATCH 09/26] rust: qom: convert type_info! macro to an associated const, (continued)
- [PATCH 16/26] rust: qom: change the parent type to an associated type, Paolo Bonzini, 2024/12/09
- [PATCH 17/26] rust: qom: put class_init together from multiple ClassInitImpl<>, Paolo Bonzini, 2024/12/09
- Re: [PATCH 17/26] rust: qom: put class_init together from multiple ClassInitImpl<>,
Zhao Liu <=
- [PATCH 20/26] rust: re-export C types from qemu-api submodules, Paolo Bonzini, 2024/12/09
- [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Paolo Bonzini, 2024/12/09
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Zhao Liu, 2024/12/10
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Paolo Bonzini, 2024/12/10
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Zhao Liu, 2024/12/11
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Paolo Bonzini, 2024/12/11
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Zhao Liu, 2024/12/11
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Paolo Bonzini, 2024/12/12
- Re: [PATCH 14/26] rust: qom: move bridge for TypeInfo functions out of pl011, Zhao Liu, 2024/12/13