[dpdk-dev] [PATCH 2/2] igb_uio: fix interrupt enablement after FLR in VM

Ferruh Yigit ferruh.yigit at intel.com
Fri Oct 13 23:38:23 CEST 2017

On 10/13/2017 9:54 PM, Ferruh Yigit wrote:
> On 10/9/2017 9:31 PM, Jingjing Wu wrote:
>> If pass-through a VF by vfio-pci to a Qemu VM, after FLR
>> in VM, the interrupt setting is not recoverd correctly
>> to host as below:
>>  in VM guest:
>>         Capabilities: [70] MSI-X: Enable+ Count=5 Masked-
>>  in Host:
>>         Capabilities: [70] MSI-X: Enable+ Count=5 Masked-
>> That was because in pci_reset_function, it first reads the
>> PCI configure and set FLR reset, and then writes PCI configure
>> as restoration. But not all the writing are successful to Host.
>> Becuase vfio-pci driver doesn't allow directly write PCI MSI-X
>> Cap.
>> To fix this issue, we need to move the interrupt enablement from
>> igb_uio probe to open device file. While is also the similar as
>> the behaviour in vfio_pci kernel module code.>>
>> Fixes: b58eedfc7dd5 ("igb_uio: issue FLR during open and release of device file")
>> Cc: stable at dpdk.org
>> Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
>> Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>
> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

Series applied to dpdk/master, thanks.

More information about the dev mailing list