On Tue, 22 Oct 2024 at 09:54, Paolo Bonzini <[email protected]> wrote: > > The stellaris board requires the pl011-luminary variant of pl011, > which is not supported by the Rust implementation. > > There are at least three possibilities: 1) implement the subclass > (a bit harder in Rust since the language does not have subclasses) > 2) change the ID to a property 3) split pl011-luminary to a separate > Kconfig symbol and leave the subclass as C code. > > Just for the sake of starting the discussion, this RFC patch uses > the big axe and disables stellaris.
Reasonable enough as a starter. For the longer term, we should figure out how we want to handle this kind of "we have a common base QOM class that implements almost all of the behaviour and we subclass it to implement different minor variants" in Rust, because we use it a fair amount in the existing C code. -- PMM
