Skip to content

Commit 7003afb

Browse files
binbinwu1NanlinXie
authored andcommitted
hv: msix: fix bug when check if msix table access
The offset calculation should base on the MSI-x BAR address, not MSIX-table address. Tracked-On: #1946 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 5dcfc13 commit 7003afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/dm/vpci/msix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int vmsix_table_mmio_access_handler(struct io_request *io_req, void *hand
265265
uint64_t hva;
266266

267267
vdev = (struct pci_vdev *)handler_private_data;
268-
offset = mmio->address - vdev->msix.intercepted_gpa;
268+
offset = mmio->address - vdev->msix.mmio_gpa;
269269

270270
if (msixtable_access(vdev, (uint32_t)offset)) {
271271
vmsix_table_rw(vdev, mmio, (uint32_t)offset);

0 commit comments

Comments
 (0)