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 S. Tsirkin <mst@redhat.com>
Wed, 15 Jan 2025 18:06:41 +0000 (13:06 -0500)
commit42e2a7a0ab23784e44fcb18369e06067abc89305
treeca03f4f34bc6101d425d783cb52509a159b7000b
parent2c746dfe1c69896b0e434d37efe014654f0a3a65
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>
hw/pci/msix.c