]> 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>
Fri, 17 Jan 2025 06:26:23 +0000 (09:26 +0300)
commitc8fb662a5817ee3267430ffdc711c6ec7a4cb11e
tree57079ff8fe9b202c55c3f3fdf465f7c67a1c351a
parent91b2cb9a78ae3b0487497e004c660016bc7b7b44
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