Re: Virtualizing MSI-X on IMS via VFIO
From: Jacob Pan
Date: Thu Jun 24 2021 - 13:00:41 EST
Hi Kevin,
On Wed, 23 Jun 2021 19:41:24 -0700, "Tian, Kevin" <kevin.tian@xxxxxxxxx>
wrote:
> > > 1) Fix the lost interrupt issue in existing MSI virtualization flow;
> > >
> >
> > That _cannot_ be fixed without a hypercall. See my reply to Alex.
>
> The lost interrupt issue was caused due to resizing based on stale
> impression of vector exhaustion.
Is it possible to mitigate the lost interrupt by always injecting an IRQ
after unmask? Either in VFIO layer, or let QEMU do that after the second
VFIO_DEVICE_SET_IRQS in step 4.b of your original email.
After all, spurious interrupts should be tolerated and unmasking MSI-x
should be rare. I am not suggesting this as an alternative to the real fix,
just a stop gap.
Thanks,
Jacob