Re: [PATCH RESEND v9 9/9] rust: add PL011 device model

2024-09-06 Thread Paolo Bonzini
> +impl PL011State { > +pub fn init(&mut self) { > +let dev = addr_of_mut!(*self).cast::(); One small thing that I forgot about, is that the init function should be unsafe. For a short term change after this is merged, this should take not a &mut self, but a "obj: &mut MaybeUninit".

Re: [PATCH RESEND v9 9/9] rust: add PL011 device model

2024-09-04 Thread Paolo Bonzini
On Wed, Aug 28, 2024 at 6:12 AM Manos Pitsidianakis wrote: > subprojects/packagefiles/either-1-rs/meson.build | 24 + > .../packagefiles/itertools-0.11-rs/meson.build | 30 ++ > .../packagefiles/proc-macro-error-1-rs/meson.build | 40 ++ > .../proc-macro-error-attr-1-rs/meson.build