Alex Williamson wrote:
We're currently using a counter to track the most recent GSI we've
handed out. This quickly hits KVM_MAX_IRQ_ROUTES when using device
assignment with a driver that regularly toggles the MSI enable bit.
This can mean only a few minutes of usable run time. Instead, track
used GSIs in a bitmap.
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
v2: Added mutex to protect gsi bitmap
Why is the mutex needed? We already have mutex protection in qemu.
How often does the driver enable/disable the MSI (and, do you now why)?
If it's often enough it may justify kernel support. (We'll need this
patch in any case for kernels without this new support).
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html