On 10/22/19 10:21 AM, David Marchand wrote:
> On x86, calling inb/outb special instructions (used in UIO ioport
> read/write parts) is only possible if the right IO permissions has been
> granted.
> 
> The only user of this API (the net/virtio pmd) checks this
> unconditionnaly but this should be hidden by the rte_pci_ioport API
> itself and only checked when the device is bound to a UIO driver.
> 
> Signed-off-by: David Marchand <david.march...@redhat.com>
> ---
> Changelog since v2:
> - do not switch to pci_ioport_map in igb_uio case, add a check on iopl
>   there too,
> 
> Changelog since v1:
> - change log message level from DEBUG to ERR,
> - add device name in log message,
> 
> ---
>  drivers/bus/pci/bsd/pci.c       | 5 +++++
>  drivers/bus/pci/linux/pci.c     | 6 ++++++
>  drivers/bus/pci/linux/pci_uio.c | 6 ++++++
>  3 files changed, 17 insertions(+)
> 

Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to