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

2018-07-17 Thread Takeshi Yoshimura
2018-07-13 20:08 GMT+09:00 Burakov, Anatoly : > On 13-Jul-18 12:00 PM, Burakov, Anatoly wrote: >> >> On 13-Jul-18 11:11 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

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

2018-07-13 Thread Burakov, Anatoly
On 13-Jul-18 12:00 PM, Burakov, Anatoly wrote: On 13-Jul-18 11:11 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 b

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

2018-07-13 Thread Burakov, Anatoly
On 13-Jul-18 11:11 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 an

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

2018-07-13 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