]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci/msix: Fix msix pba read vector poll end calculation
authorNicholas Piggin <npiggin@gmail.com>
Thu, 12 Dec 2024 12:04:02 +0000 (22:04 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 18 Jan 2025 10:43:32 +0000 (13:43 +0300)
commitd00c5d29edb965e678ba6cd54ffe41b3fe8422d2
tree06297c9e66441e56b4966332b29ce193199560bc
parent9e0ece41fca502bba9b0dafd8f6549c84f7faeab
pci/msix: Fix msix pba read vector poll end calculation

The end vector calculation has a bug that results in polling fewer
than required vectors when reading at a non-zero offset in PBA memory.

Fixes: bbef882cc193 ("msi: add API to get notified about pending bit poll")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20241212120402.1475053-1-npiggin@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 42e2a7a0ab23784e44fcb18369e06067abc89305)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/pci/msix.c