diff options
| author | Jason Wang <[email protected]> | 2022-03-29 04:21:07 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2022-03-30 08:18:14 +0000 |
| commit | 55ebf0d60e3cc6c9e8593399e185842c00e12f36 (patch) | |
| tree | 247b49c2514822cdf5debac17e9d362b3dc4ff07 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | Revert "virtio_config: introduce a new .enable_cbs method" (diff) | |
| download | kernel-55ebf0d60e3cc6c9e8593399e185842c00e12f36.tar.gz kernel-55ebf0d60e3cc6c9e8593399e185842c00e12f36.zip | |
vdpa: mlx5: prevent cvq work from hogging CPU
A userspace triggerable infinite loop could happen in
mlx5_cvq_kick_handler() if userspace keeps sending a huge amount of
cvq requests.
Fixing this by introducing a quota and re-queue the work if we're out
of the budget (currently the implicit budget is one) . While at it,
using a per device work struct to avoid on demand memory allocation
for cvq.
Fixes: 5262912ef3cfc ("vdpa/mlx5: Add support for control VQ and MAC setting")
Signed-off-by: Jason Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Eli Cohen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
