Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-28 Thread Paolo Bonzini
Manos, I understand your desire to make fast progress, at the same time I can't stress enough the importance of building on a shared design. Each architectural decision we make now - whether about trait hierarchies, macro designs, or API patterns - will significantly impact future maintenance and

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-27 Thread Manos Pitsidianakis
Thank you for the review comments Paolo. I will address any bits I did wrong and not much the rest, it's obvious you have a disagreement over how things are done and that's fine. This series does not attempt to solve everything at once and arguing again and again over "this Trait should have been O

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-27 Thread Paolo Bonzini
Hello, here is my second attempt to review this, this time placing the remarks as close as possible to the code that is affected. However, the meat is the same as in my previous replies to the 03/11 thread. I hope this shows that I have practical concerns about the patch and it's not just F

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-25 Thread Manos Pitsidianakis
I disagree with your points, Paolo. A patch review should not be "Fear Uncertainty and Doubt" but point out actual problems with the code. Please do not proceed with this conversation since it's not productive. If this series misses softfreeze because of code problems or by people delaying the rev

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-25 Thread Paolo Bonzini
[snipping to concentrate on the QOM code generation] On Fri, Oct 25, 2024 at 4:05 PM Manos Pitsidianakis wrote: > > The part where I have most comments, and some ideas of how to make your > > work a little more maintainable, is the implementation of class_init > > (and all that depends on it). >

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-25 Thread Manos Pitsidianakis
On Fri, 25 Oct 2024 at 15:01, Paolo Bonzini wrote: > > (Generally, don't read too much in the code - the syntax might have > issues but you get the idea). > > > Anyhow, going forward to the property attribute: > > > +#[property(name = c"migrate-clk", qdev_prop = qdev_prop_bool)] > > There are

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-25 Thread Paolo Bonzini
On 10/24/24 16:03, Manos Pitsidianakis wrote: Add a new derive procedural macro to declare device models. Add corresponding DeviceImpl trait after already existing ObjectImpl trait. At the same time, add instance_init, instance_post_init, instance_finalize methods to the ObjectImpl trait and call

[PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-25 Thread Manos Pitsidianakis
Add a new derive procedural macro to declare device models. Add corresponding DeviceImpl trait after already existing ObjectImpl trait. At the same time, add instance_init, instance_post_init, instance_finalize methods to the ObjectImpl trait and call them from the ObjectImplUnsafe trait, which is

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-24 Thread Manos Pitsidianakis
On Thu, 24 Oct 2024 at 18:14, Alex Bennée wrote: > > Manos Pitsidianakis writes: > > > Add a new derive procedural macro to declare device models. Add > > corresponding DeviceImpl trait after already existing ObjectImpl trait. > > At the same time, add instance_init, instance_post_init, > > insta

Re: [PATCH 03/11] rust/qemu-api-macros: introduce Device proc macro

2024-10-24 Thread Alex Bennée
Manos Pitsidianakis writes: > Add a new derive procedural macro to declare device models. Add > corresponding DeviceImpl trait after already existing ObjectImpl trait. > At the same time, add instance_init, instance_post_init, > instance_finalize methods to the ObjectImpl trait and call them from