Il lun 6 gen 2025, 14:32 Peter Maydell <peter.mayd...@linaro.org> ha scritto:
> I think here I agree with Philippe that we might as well > provide only the new API to Rust devices. > Ok, I wasn't thinking of doing that because there isn't right now an easy way to add interfaces to Rust-defined classes. However, all devices are Resettable and Device isn't defined in Rust, so it's not hard to add a ResettableImpl trait in rust/qemu-api/srv/qdev.rs, and initialize it for all devices. If anybody wants to do it as an exercise, I am happy to help, otherwise I can prepare a patch too. Paolo > -- PMM > >