Re: [dpdk-dev] [PATCH v4] vfio: fix workaround of BAR0 mapping

2018-07-17 Thread Burakov, Anatoly
On 17-Jul-18 9:22 AM, Takeshi Yoshimura wrote: The workaround of BAR0 mapping gives up and immediately returns an error if it cannot map around the MSI-X. However, recent version of VFIO allows MSIX mapping (*). I fixed not to return immediately but try mapping. In old Linux, mmap just fails and

[dpdk-dev] [PATCH v4] vfio: fix workaround of BAR0 mapping

2018-07-17 Thread Takeshi Yoshimura
The workaround of BAR0 mapping gives up and immediately returns an error if it cannot map around the MSI-X. However, recent version of VFIO allows MSIX mapping (*). I fixed not to return immediately but try mapping. In old Linux, mmap just fails and returns the same error as the code before my fix