Received: by 10.192.165.148 with SMTP id m20csp1857974imm; Thu, 3 May 2018 06:36:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq5J9yN0C8iUFjQ7KHkamjSoeO6/13pmMHP/MvoGyHf/nk/FzFKhJ6ysx2cSDbFQRMO3GMc X-Received: by 2002:a63:7b14:: with SMTP id w20-v6mr19480099pgc.124.1525354561462; Thu, 03 May 2018 06:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525354561; cv=none; d=google.com; s=arc-20160816; b=K5bl4pqEKOH2uHUGmA+X6rMih/7weEWstZ3zFtJQq7GvngEFjFYnpNZK7+dTWlIqW2 DmlhqZceb9x2wBpa3LDrrpZh+aZj4IFRUEQzJSTgnQHtYdXt+fo6byb5KM/Q7aGTPaaT keQ4rFe797tng7UN14J0VnmF9M1l7bTHvlzTPHgKtrLSXENhQmTFZM1TdwKB2/EJcqLP FVm05PcpUgCEs4VRC4UJ4g6gcovDh2A9ibEd78aGNrMSG21mEVjSdjJ8jNufGjLRQx9s VN5GLbz7TTGu/30hmlvODdFCR5wuhfFzTCYkUtip/9pgXAaJREBatm/GdsCXPr0J4nGH bXkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=m1vwUYrtJnW6oi6JOQ8y0G9nISRfnBkfzbjG7QsHRzk=; b=wsnYvsbiOoNHG/Xw/Ct7H8UCxIN0NcYb8he686hxkjpK0QbhATE8D8t3jB3C+2jkQ0 Z1uW5TZghP79SZdUD4zIzK94rwlf9Dv/miAjxY1nFQ1xhXCXEDnQbqJaUAijWVPPYCw6 OlHAf9ECUsac4lXUZMugRJqOOJe6cNumYqViMOo8bJTzAYjFJrI3CUSQAn8S7HyMoUP2 31epzj6CCqBAkF9MOegaQQqvZ/Fvs3STssKKeZ2gzkuFqJ12eHc2NirwxT7KHVZ0i/2/ SNMiIxh6upqxoyHc3EgwtC/zJ98FT3CO7fdtyKg2K2iTE11eJXwgG2vK2nurtyO3wse8 fsYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=QSemuE4K; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b19si13914656pfh.358.2018.05.03.06.35.17; Thu, 03 May 2018 06:36:01 -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; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=QSemuE4K; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbeECNfF (ORCPT + 99 others); Thu, 3 May 2018 09:35:05 -0400 Received: from 8bytes.org ([81.169.241.247]:54712 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbeECNfC (ORCPT ); Thu, 3 May 2018 09:35:02 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id E090F188; Thu, 3 May 2018 15:35:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1525354500; bh=l1eqMf9r4Me428KFWT7FrvK7pmwWu8ppoUdgF2GwZdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QSemuE4K4qerywDi1NzRkyMtT1k25e2ZTHocBhA3MLCtLnbHZ7hbRZBujnIwFjw52 xFnqD+Z/kVOEd+PN+CiUbd1V7VN+QFDi3uAfJJzNYRDo+VO3W2bC0bbtGqc53EvN00 jH91QAorqYQJgRuZXv91twkTnvIP2Bje3ChIRN4TG9RRFDA0Kz6cyTrBnY+MSI/Q5Z bZSABuiF6swFaLd8QDwsNwho7Jw/RkjOMFy7faSMShOuNpvrQFuF0qDEXflvjG15AL xVxPQfGCPW7JtF1kDGA04bJrTK0r4z8QmhF6rcOr2QJzZCmPYHU62m0dfkFc0QgR4h b0plU9+lmQ2CQ== Date: Thu, 3 May 2018 15:35:00 +0200 From: Joerg Roedel To: Gil Kupfer Cc: dwmw2@infradead.org, bhelgaas@google.com, iommu@lists.linux-foundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, nadav.amit@gmail.com, Gil Kupfer Subject: Re: [RFC/RFT] Add noats flag to boot parameters Message-ID: <20180503133459.waawna3ebtu3udn6@8bytes.org> References: <1525025808-2365-1-git-send-email-gilkup@cs.technion.ac.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525025808-2365-1-git-send-email-gilkup@cs.technion.ac.il> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 29, 2018 at 09:16:48PM +0300, Gil Kupfer wrote: > This patch adds noats option to the pci boot parameter. > When noats is selected, all ATS related functions fail immediately and > the IOMMU is configured to not use device-iotlb. > > Any function that checks for ATS capabilities directly against the > devices should also check this flag. (Currently, such functions exist > only in IOMMU drivers, and they are covered by this patch.) > > The motivation behind this patch is the existence of malicious devices. > Lots of research has been done about how to utilitize the IOMMU as a > protection from such devices. When ATS is supported, any I/O device can > access any physical access by faking device-IOTLB entries. > Adding the ability to ignore these entries lets sysadmins enhance system > security. > > Signed-off-by: Gil Kupfer This has also been on my list, thanks for doing that. Acked-by: Joerg Roedel