From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 44F79A04B5; Fri, 2 Oct 2020 20:33:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C4B4C1D56E; Fri, 2 Oct 2020 20:33:36 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 7ED601D54B for ; Fri, 2 Oct 2020 20:33:35 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id b22so2993251lfs.13 for ; Fri, 02 Oct 2020 11:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hwhCV/ZlK0YyttJ6Wfh2l07Fc4WintWKztYGKvBkGZw=; b=ntLcNutzzfzWQtRQKSAtAXxImIpZYCmZBRUEy5z0eMIGZ9x6trYUJWwE3SzUATemMh 8ww5t0GxveqKaccpL3+HGmkGQwebg+SAaF9ZXND4XoIHWM6YZyhK69iT2cnR1hlukzwv l75yS5VVL8AFX2DyUwnFmdZwYs3zmhBEGknkG/O1hdZIZBUoqzbupwwTkZgpcMPqb3Ri /HTM9nMPoSEPXthrC5yPGGR+l4V9s+J27FwkZc7EgH4lDYDwGPNxsXjAQY8SCC+dN9Zl uTZ1v3pGDdtJrsZZVWFT5837Wbg5euXurCRGM8B60QoHeSfE4orDekHUE9Jerfxj5tsa vdWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hwhCV/ZlK0YyttJ6Wfh2l07Fc4WintWKztYGKvBkGZw=; b=sSsQW96v0rDzHI9hNy6AtkZ33EOLTZyt9b9vIqjqgpQxTN1ZwGwArpOQ6Ov7CXpHsS FsCOGDKikrEifZx4doAz3d1f/SDR7DdUMM7dy5BT+eZqxf4gI/sOyQMnmgV/qypvt7Vd se6S26mhUW+H8i2MTLnlXvovCkr3Nv6LQ+E6CgxuMXbXHrIo87pgaAxNOb0QWsKisnkb uGojv/YiqKTLqY1Xem3v7raw6opFuq3o0smaXJ1qNPGQ+GqiFq8SiGH8+xdzqZgcMdUd G5K1hNqU744jj+WQs2ZQlNAayzu2Wql14w3aju8Z9ZUSJkooIFiPzZvDty2nk4dZ8euZ d9iQ== X-Gm-Message-State: AOAM532nNFAg7MhVoarxKqHplboTK527iy50682k+0CzvBczJ8Gw2eP1 +aKmmgytxyV2EeB57TjrvIs= X-Google-Smtp-Source: ABdhPJxXoS8wHNg68OyNMObvSlJ+QT9eT1pFQrBHKNFs9imTH50S2IBQpzvq7euDYFe//WASTp61+w== X-Received: by 2002:a19:a93:: with SMTP id 141mr1267725lfk.292.1601663613998; Fri, 02 Oct 2020 11:33:33 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id o3sm490996lfb.168.2020.10.02.11.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 11:33:32 -0700 (PDT) Date: Fri, 2 Oct 2020 21:33:31 +0300 From: Dmitry Kozlyuk To: Narcisa Ana Maria Vasile Cc: dev@dpdk.org, thomas@monjalon.net, ocardona@microsoft.com, haramakr@linux.microsoft.com, pallavi.kadam@intel.com, ranjit.menon@intel.com, dmitrym@microsoft.com, Narcisa Vasile , Harini Ramakrishnan Message-ID: <20201002213331.64ffac9d@sovereign> In-Reply-To: <1601592908-11262-1-git-send-email-navasile@linux.microsoft.com> References: <1600483953-28579-1-git-send-email-navasile@linux.microsoft.com> <1601592908-11262-1-git-send-email-navasile@linux.microsoft.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v5] windows/netuio: add Windows NetUIO kernel driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 1 Oct 2020 15:55:08 -0700, Narcisa Ana Maria Vasile wrote: > From: Narcisa Vasile > > 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 > Cc: Omar Cardona > Cc: Dmitry Malloy > Signed-off-by: Narcisa Vasile Reviewed-by: Dmitry Kozlyuk