mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
rust: qdev: switch from legacy reset to Resettable
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
68da5402df
commit
5472a38cb9
4 changed files with 99 additions and 28 deletions
|
@ -13,7 +13,7 @@ use qemu_api::{
|
|||
cell::{self, BqlCell},
|
||||
declare_properties, define_property,
|
||||
prelude::*,
|
||||
qdev::{DeviceClass, DeviceImpl, DeviceState, Property},
|
||||
qdev::{DeviceClass, DeviceImpl, DeviceState, Property, ResettablePhasesImpl},
|
||||
qom::{ClassInitImpl, ObjectImpl, ParentField},
|
||||
vmstate::VMStateDescription,
|
||||
zeroable::Zeroable,
|
||||
|
@ -61,6 +61,8 @@ impl ObjectImpl for DummyState {
|
|||
const ABSTRACT: bool = false;
|
||||
}
|
||||
|
||||
impl ResettablePhasesImpl for DummyState {}
|
||||
|
||||
impl DeviceImpl for DummyState {
|
||||
fn properties() -> &'static [Property] {
|
||||
&DUMMY_PROPERTIES
|
||||
|
@ -101,6 +103,7 @@ impl ObjectImpl for DummyChildState {
|
|||
const ABSTRACT: bool = false;
|
||||
}
|
||||
|
||||
impl ResettablePhasesImpl for DummyChildState {}
|
||||
impl DeviceImpl for DummyChildState {}
|
||||
|
||||
impl ClassInitImpl<DummyClass> for DummyChildState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue