Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4141438ybg; Fri, 25 Oct 2019 14:00:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbG769+K8ocjHjC9lurrV1Tsb7oi1QTOh2C3cA67otKLnrdjhu2SkAk/hkkp6v0YIjH6I6 X-Received: by 2002:a17:906:8682:: with SMTP id g2mr5370830ejx.225.1572037235374; Fri, 25 Oct 2019 14:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572037235; cv=none; d=google.com; s=arc-20160816; b=W9d7DzohqgoRY4yzy4EQSsp3PMK3puU3VisAtvA2tHSfhk5sleN+iORpmPvcrW4wI6 66RkPPobS9Wy8pYTuqL2f0aoLQ6tNb4kT2CdGW8vAzNX0m1w3jNCgM7IbWY+xtL1MPsE QWTdtUyWN+u7WHnXIqB5xgqZIG2oV6IZNap2kv5R1DrKbbOeRFVueWIVRDEwoVNdRLLd chuPg13Suxv/BeOm11lGGxDfMc98TDtpFVpMUwV/p2ojZEEhU4FoUmmB6sS4xJxANNBJ QBDrWgrTY3taZhwqh7EMw2JmuDRPb7R5bSR8Gdq0yxf1KNFWWWY66ROb5nS0dBAhYV4i wtIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=TBV7tcxKI3TGY1SCIcRolhj2bCry+JnT9dxz9V2YiIE=; b=b+ITuxZJxW+wn1ILp/AjKr79MUdJvfrj0PEVU1BmX/l0diA8voKel3u8orTMFMGDGp vzLfmFUrQnGXbLovHlnsPj6GLhozPvVnh22aMh4vZXfTozKtgqeudgUnM7OlmsuwqD/T CCHfEKpAWDC2o8EHylUoNydn7zTGEadjQPW4nh/3H8utLe8+7Vb8hxgR3BqV/9PNM6bb rnuiiSv7wJI1N69h1FQXzz/NKCLPBHTktUm7X9agEzz2jNPBC7JSk2ekRcL5rUY4CI04 /InN6ESQFwfTP8Bb8KaLzp/J8h6Cv/+No/wDWfC/Af/cflZ8msA3jpQD/JVee5wXdbRz FzYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q45si2183008eda.202.2019.10.25.14.00.11; Fri, 25 Oct 2019 14:00:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728681AbfJYUoG (ORCPT + 99 others); Fri, 25 Oct 2019 16:44:06 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38999 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfJYUoG (ORCPT ); Fri, 25 Oct 2019 16:44:06 -0400 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iO6RE-0004il-IH; Fri, 25 Oct 2019 22:44:00 +0200 Date: Fri, 25 Oct 2019 22:43:54 +0200 (CEST) From: Thomas Gleixner To: Stephen Hemminger cc: Andy Lutomirski , dev@dpdk.org, Peter Zijlstra , LKML Subject: Re: [dpdk-dev] Please stop using iopl() in DPDK In-Reply-To: <20191025091310.05770edc@hermes.lan> Message-ID: References: <20191025091310.05770edc@hermes.lan> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Oct 2019, Stephen Hemminger wrote: > On Thu, 24 Oct 2019 21:45:56 -0700 > Andy Lutomirski wrote: > > 3. Use ioperm() instead of iopl(). > > Ioperm has the wrong thread semantics. All DPDK applications have > multiple threads and the initialization logic needs to work even > if the thread is started later; threads can also be started by > the user application. > > Iopl applies to whole process so this is not an issue. No. iopl is also per thread and not per process. That has been that way forever. The man page is blantantly wrong. Both iopl and ioperm are inherited on fork. Thanks, tglx