qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 05/13] microvm: add acpi_dsdt_add_virtio() for x86


From: Gerd Hoffmann
Subject: Re: [PATCH 05/13] microvm: add acpi_dsdt_add_virtio() for x86
Date: Fri, 20 Mar 2020 09:19:48 +0100

  Hi,

> > +            uint32_t irq = VIRTIO_IRQ_BASE + index;
> > +            hwaddr base = VIRTIO_MMIO_BASE + index * 512;
> > +            hwaddr size = 512;
> is it possible to fish these values out from device without poking in its guts
> like using sysbus_get_connected_irq() and make up something to do get mmio 
> parameters from sysbus device

Had a brief look at this while making VIRTIO_IRQ_BASE configurable.
The virtio-mmio proxy gets passed an qemu_irq struct on initialization,
so it doesn't know what the irq number is ...

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]