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 CA44AA04B5; Tue, 22 Sep 2020 23:25:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A31D31DAF4; Tue, 22 Sep 2020 23:25:43 +0200 (CEST) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by dpdk.org (Postfix) with ESMTP id 8C5711DAD6 for ; Tue, 22 Sep 2020 23:25:41 +0200 (CEST) Received: by mail-lj1-f194.google.com with SMTP id s205so15366191lja.7 for ; Tue, 22 Sep 2020 14:25:41 -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=zOMk0j1C0avW5cRyociQ+aiJ970l7pPe21Dfx8UDI7Y=; b=Jzsf0GDlLWTyldnX9Py3F4uowc49jhwalA5TJMYzeZ1xzZUqwQvJ5Ps5wgIVr04lqB E1lThe2IF68oZkbCObGnRA4QB/qn793C8DIHk1j/CZe3NBqtCJDjrb/P7qteCjDccpN8 7cZgVpyA6EznfKqa2L/eEYEoL7G6njyyJqrjhvGmIi/S5IZRx6NoRUvfaVAxwC66R4wy 7sgCRgwB82AfF+I3182vMgelGPhziUCtUceWaGA0nUGpQmH3KIuVi7/+nkWSoSRRFdf0 JtbD9smDIizlUucpThW92oO70dEWhEo1ODzkX4k+ZnlVYrn08rZpuc8jUENKnEAPCjRJ Cbdw== 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=zOMk0j1C0avW5cRyociQ+aiJ970l7pPe21Dfx8UDI7Y=; b=s66affrD967O/mYivOwuGzREpuKaANUCt4sz+lJePW1/uubsvMmEWtU/KLeXkEBNnN lox/kbH2cYvVlXsgrAhHnR9jqtxFmm/4iPuN8FiPhhIe7Vl3Tz0nyRuCy/25avwujrMA ABOqezmZ52fnrJRM0PeTjPjDOBZNedDEs5164JGcrPa7h7Ap6X5SVH1zy5EqFwxdeDCu wmiZeWJrq+z1L/SJyt7pHiKxGTWLn2AIdaCNpVYs2an7SdHRgVQ6pY25Ebnixxn33XRa 0K7JCduLaelzthWrLQGXyDEqCeSxb4hOlaFDiHPMAil/ec0OG/0BUoI6lTdvvGUJmmgI NjNg== X-Gm-Message-State: AOAM531I2Q/Resain8V+obAqVLDBN7pRQBG6Z8duLkjz7wml5qko7GTs 057xujso14yv6Rm9keQoa0M= X-Google-Smtp-Source: ABdhPJznSCA+gwBiLikjOt7eQPbB0iklrBGVt5b6gwe/bhZCLG5/PjxXbOyXZlg8GOdSMa7asWAkCQ== X-Received: by 2002:a05:651c:134a:: with SMTP id j10mr2309033ljb.337.1600809941104; Tue, 22 Sep 2020 14:25:41 -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 m132sm3875686lfa.217.2020.09.22.14.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 14:25:40 -0700 (PDT) Date: Wed, 23 Sep 2020 00:25:39 +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: <20200923002539.72d0a734@sovereign> In-Reply-To: <1600483953-28579-1-git-send-email-navasile@linux.microsoft.com> References: <1599676883-11991-1-git-send-email-navasile@linux.microsoft.com> <1600483953-28579-1-git-send-email-navasile@linux.microsoft.com> X-Mailer: Claws Mail 3.17.4 (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 v4] 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 Fri, 18 Sep 2020 19:52:33 -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_USERMODE > - 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