On Wed Jun 3, 2026 at 2:04 AM JST, Gary Guo wrote: > From: Gary Guo <[email protected]> > > Currently Nova code uses `&'a Bar0` a lot. This is `&'a Mmio`, where `Mmio` > represents an owned MMIO region; this type only exists as a target for > `Deref` so `Bar` and `IoMem` can share code and should be avoided to be > named directly. The upcoming I/O projection series would make `Io` trait > much simpler to implement, and thuis the owned MMIO type would be removed > in favour of direct `Io` implementation on `Bar` and `IoMem`. > > Add lifetime parameter to `Bar0<'a>` and change it to be alias of `&'a > pci::Bar<'a, ..>`. This also prepares Nova core so that when I/O projection > series land, this could be changed to using a MMIO view type directly which > avoids double indirection. > > Signed-off-by: Gary Guo <[email protected]> > ---
Reviewed-by: Eliot Courtney <[email protected]>
