diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-06-29 11:35:38 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-03 23:08:17 -0400 |
| commit | d57a0ea6b521435bb688b067a0f112df1d63191b (patch) | |
| tree | 7b5f044d448d75ed821252ea94c5dcf87e295cb6 /scripts | |
| parent | c2ed2f2a6415a84673485e5125be08ed6f732489 (diff) | |
| download | linux-next-d57a0ea6b521435bb688b067a0f112df1d63191b.tar.gz linux-next-d57a0ea6b521435bb688b067a0f112df1d63191b.zip | |
virtio_pci: fix wrong queue index for admin vq in intx path
In vp_find_vqs_intx(), the admin vq was set up using the local
queue_idx counter instead of avq->vq_index (the actual queue index
obtained from the device). This differs from vp_find_vqs_msix() which
correctly uses avq->vq_index. Using the wrong index causes the admin
virtqueue to be mapped to an incorrect hardware queue.
Fix it by using avq->vq_index consistent with the msix path.
Fixes: af22bbe1f4a5 ("virtio: create admin queues alongside other virtqueues")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Message-ID: <20260629033538.2476-1-lirongqing@baidu.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
