Currenlty, assigned MSI-x devices fails to
work due to incorrect table_offset_adjust setting.
The last field msix_entryof struct pt_msix_info is
a variable-size array, so there shouldn't be any field
after it, otherwise they maybe destroyed
when access msix_entry.
Signed-off-by: Xiantao Zhang <xiantao.zhang@xiantao.zhang@intel.com>
int bar_index;
uint64_t table_base;
uint32_t table_off;
+ uint32_t table_offset_adjust; /* page align mmap */
uint64_t mmio_base_addr;
int mmio_index;
void *phys_iomem_base;
struct msix_entry_info msix_entry[0];
- uint32_t table_offset_adjust; /* page align mmap */
};
struct pt_pm_info {