[PATCH v3] bus/pci: don't open uio device in secondary process

David Marchand david.marchand at redhat.com
Thu Oct 24 11:05:53 CEST 2024


On Fri, Oct 11, 2024 at 1:17 PM Konrad Sztyber <konrad.sztyber at intel.com> wrote:
>
> The uio_pci_generic driver clears the bus master bit when the device
> file is closed. So, when the secondary process terminates after probing
> a device, that device becomes unusable in the primary process.
>
> To avoid that, the device file is now opened only in the primary process
> and the secondary gets it over UNIX domain socket via SCM_RIGHTS.
>
> Fixes: 847d78fb9530 ("bus/pci: fix FD in secondary process")
> Cc: stable at dpdk.org
>
> Signed-off-by: Konrad Sztyber <konrad.sztyber at intel.com>

Recheck-request: rebase=main,iol-compile-amd64-testing


-- 
David Marchand



More information about the dev mailing list