RE: [virtio-dev] Re: [PATCH v2 0/2] transport-pci: Introduce legacy registers access using AQ

Parav Pandit
2023-05-12T14:03:54Z

> From: virtio-dev@lists.oasis-open.org <virtio-dev@lists.oasis-open.org> On
> Behalf Of Michael S. Tsirkin
> Sent: Thursday, May 11, 2023 9:45 AM
>
> On Thu, May 11, 2023 at 01:15:15PM +0000, Parav Pandit wrote:
> > > Why not simply invent individual commands to access legacy
> > > facilities like commands to access like what transport virtqueue did
> > > for modern
> > > device?:
> > >
> > I don’t see how this is being any different than register-offset interface.
>
> For example legacy device config's offset moves depending on MSI enable.
> Which is a missing piece in the current proposal btw as I keep saying.
How is this missing?
The offset is decided by the driver when msi enable.
Device also know that msi is enable/disabled.
So device responds based on what is done with msi, like how a device responds today on iobar.

I responded in this previously, don’t have the link, not sure if you got chance to read through.