mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
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>
This commit is contained in:
parent
5dcfc1336b
commit
7003afbe74
@ -265,7 +265,7 @@ static int vmsix_table_mmio_access_handler(struct io_request *io_req, void *hand
|
|||||||
uint64_t hva;
|
uint64_t hva;
|
||||||
|
|
||||||
vdev = (struct pci_vdev *)handler_private_data;
|
vdev = (struct pci_vdev *)handler_private_data;
|
||||||
offset = mmio->address - vdev->msix.intercepted_gpa;
|
offset = mmio->address - vdev->msix.mmio_gpa;
|
||||||
|
|
||||||
if (msixtable_access(vdev, (uint32_t)offset)) {
|
if (msixtable_access(vdev, (uint32_t)offset)) {
|
||||||
vmsix_table_rw(vdev, mmio, (uint32_t)offset);
|
vmsix_table_rw(vdev, mmio, (uint32_t)offset);
|
||||||
|
Loading…
Reference in New Issue
Block a user