On Thu, 29 Jun 2023 10:53:39 +0800
Weifeng Su <suweife...@huawei.com> wrote:

> In this scenario, the DPDK process invokes a script which
> inherits an open file descriptor (FD) for a UIO device.
> After the script execution is complete, the UIO device's
> close operation is called. However, in a new kernel version
> (865a11f987ab5f03:uio/uio_pci_generic: Disable bus-mastering on release),
> this close operation causes the PCI bus master bit to be cleared,
> rendering the device unusable and leading to unexpected behavior.
> 
> This modification was made to prevent the UIO device's FD
> from being inherited by the child process.
> 
> Signed-off-by: Weifeng Su <suweife...@huawei.com>

Makes sense, the eventfd used form VFIO is already marked as close on exec.

Acked-by: Stephen Hamminger <step...@networkplumber.org>

Reply via email to