> > +/* qemu microvm supports 8 virtio-mmio devices */
> > +static u64 devs[8];
>
> It would be preferable to avoid using global variables for temporary
> state. Because of all the weird linker rules and segment rules, the
> use of global variables is conceptually harder in SeaBIOS.
>
> If I
On Fri, Apr 03, 2020 at 10:31:13AM +0200, Gerd Hoffmann wrote:
> Add a new virtio-mmio.c source file, providing a function
> to register virtio-mmio devices.
>
> Signed-off-by: Gerd Hoffmann
> ---
> Makefile | 2 +-
> src/hw/virtio-mmio.h | 6 ++
> src/hw/virtio-mmio.c | 30