[dpdk-dev] [PATCH v5] windows/netuio: add Windows NetUIO kernel driver

Narcisa Ana Maria Vasile navasile at linux.microsoft.com
Mon Oct 5 21:34:04 CEST 2020


On Fri, Oct 02, 2020 at 11:21:54AM -0700, Ranjit Menon wrote:
> 
> On 10/1/2020 3:55 PM, Narcisa Ana Maria Vasile wrote:
> >From: Narcisa Vasile <navasile at microsoft.com>
> >
> >The Windows netuio kernel driver provides the DPDK userspace application
> >with direct access to hardware, by mapping the HW registers in userspace
> >and allowing read/write operations from/to the device
> >configuration space.
> >
> >Two IOCTLs are defined by the netuio interface:
> >   * IOCTL_NETUIO_MAP_HW_INTO_USERSPACE
> >       - used for mapping the device registers into userspace
> >   * IOCTL_NETUIO_PCI_CONFIG_IO
> >       - used to read/write from/into the device configuration space
> >
> >Note:
> >Requests to map the device BARs into userspace need to be processed
> >in the thread context of the process that initiated the mapping request.
> >Otherwise, the BARs might end up mapped into an arbitrary process
> >address space.
> >EvtIoInCallerContext is used to ensure the requests are handled
> >in the right user thread context. Other requests (PCI config)
> >are sent back to the framework and processed by the EvtIoDeviceControl
> >callback.
> >
> >Cc: Harini Ramakrishnan <Harini.Ramakrishnan at microsoft.com>
> >Cc: Omar Cardona <ocardona at microsoft.com>
> >Cc: Dmitry Malloy <dmitrym at microsoft.com>
> >Signed-off-by: Narcisa Vasile <navasile at microsoft.com>
> >---
> >
> 
> We'll need to do a code-style cleanup at some point, but for now:
> 

Yes, agreed. I'll send a patch for style cleanup after merging this one.
Thanks, Ranjit.

> Reviewed-by: Ranjit Menon <ranjit.menon at intel.com>
> 
> Acked-by: Ranjit Menon <ranjit.menon at intel.com>


More information about the dev mailing list