Received: by 10.213.65.68 with SMTP id h4csp1684640imn; Thu, 29 Mar 2018 09:06:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx48yMP1zx38qXSMyiyIxhnUiO79bHs5Pj/2Omuq3sScNo5QzjWTuMsxii9VlzL7OlyhTSLbS X-Received: by 2002:a17:902:22a:: with SMTP id 39-v6mr9097194plc.128.1522339570411; Thu, 29 Mar 2018 09:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522339570; cv=none; d=google.com; s=arc-20160816; b=ka/czCaMEeVo0Rb27vT5y3WEC7++5Tc2u2EQbCt+0FzdHHj3AzmFZuahT4dJzUjaEN +q0IXgCO6I1tTDgt9cr86ZWe3t3MoEwJmPjNQb1s4t2PjndJ4X3Ailf2TfJItwONVZ6h epXogO2f349Mk/wWAAnNZ76+OULvfNhCRbj/R4A6STujojcXMMusBqyBa7hfbPPUdX6A uknqbmxNt9FScRWTqjZbCl7SXOFRB7s+fmB7COwFcW0yzMTlbTkGd1d6D4Fr9rkU+Kwd S1X8HvS6HzIPKwEEQh2kLZmBTOU71pgitQU+TSRc/dxWTwYRR6ektScoptdrWmGc2LRy qy7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=1u1guuax8LEL9CzrtT/1qvlI9CG7y6zmkS7FE8ARdB4=; b=yvDA+S93Db1Y4wl0Ts0cUhKDqEP68cS7qgvfQ7AzHWe7r29ZnOny1LVgPGVh3gGVO0 5/HvD/O87NHnUZD+h2P7Aj5r6lHi7rszVrSS1JJy2tN/HSR2wKSuhiVxitYUU6e/TiHK uwSfi4t1/3g9rGf0qu8x3u/PSewDCvyC+W179pqEZ27SNqguknMXj1UYeRpmdoBj3eDE JDdiTs8bGsf0Bs2gmiL2skfC4O0kdd8sQEa9gYWoQewwFYi8GqEMzhwsbrqInJz12Oaj 8+slo3/kEBdtY67hzfoJlnDaNpfYJcF4/6qdRnmgsdVYxiz2ADgjkiPXO9HA2qZGUyQp hJoA== 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 r11si4192584pgn.104.2018.03.29.09.05.54; Thu, 29 Mar 2018 09:06:10 -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 S1752590AbeC2QDS (ORCPT + 99 others); Thu, 29 Mar 2018 12:03:18 -0400 Received: from mga01.intel.com ([192.55.52.88]:34038 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751981AbeC2QDQ (ORCPT ); Thu, 29 Mar 2018 12:03:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2018 09:03:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,376,1517904000"; d="scan'208";a="39197622" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga003.jf.intel.com with ESMTP; 29 Mar 2018 09:03:15 -0700 Date: Thu, 29 Mar 2018 09:05:35 -0700 From: Jacob Pan To: Joerg Roedel Cc: Gary R Hook , "Raj, Ashok" , Sohil Mehta , Alex Williamson , David Woodhouse , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Gayatri Kammela , Ravi V Shankar , Andy Shevchenko , Lu Baolu , Fenghua Yu , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support Message-ID: <20180329090535.65c41cc1@jacob-builder> In-Reply-To: <20180329084824.fvy7cg2wban4by4n@8bytes.org> References: <1517619001-148586-1-git-send-email-sohil.mehta@intel.com> <20180213140303.42mbzfxpypljy37l@8bytes.org> <20180213214002.GA27066@otc-nc-03> <20180213145332.35c73eda@jacob-builder> <20180215095337.fccoozdclfnbepi4@8bytes.org> <20180215083811.3ec86e49@jacob-builder> <20180315131854.s6xmltsvsysublcw@8bytes.org> <20180319093714.3afe698b@jacob-builder> <20180329084824.fvy7cg2wban4by4n@8bytes.org> Organization: OTC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Mar 2018 10:48:24 +0200 Joerg Roedel wrote: > [ Adding Gary from AMD to Cc ] > > On Mon, Mar 19, 2018 at 09:37:14AM -0700, Jacob Pan wrote: > > On Thu, 15 Mar 2018 14:18:54 +0100 > > Joerg Roedel wrote: > > > > > On Thu, Feb 15, 2018 at 08:38:11AM -0800, Jacob Pan wrote: > > > > Just wondering if your concern is on the implementation or the > > > > debugfs idea in general. Perhaps have some common IOMMU > > > > debugfs? > > > > > > My concern mainly is that we add interfaces which reveal > > > potentially security relevant information > > I don;t think security is any worse than existing kernel page table > > in debugfs. i.e. /sys/kernel/debug/page_tables > > This is a debug feature. > > Okay, so here is the way to go: Please introduce a basic debugfs > facility to the core iommu code. It should basically only create a > 'iommu/' directory in debugfs where drivers can create their own > sub-directories. This must be enabled by a new kconfig option > (CONFIG_IOMMU_DEBUGFS) and the kernel should print a big fat warning > at boot when it is enabled. This hopefully prevents anyone from > enabling it for production kernels. > > Then in the next cycle I will review again more closely what > information about VT-d and AMD-Vi is revealed there and will probably > apply what I can live with. > sounds great. we will provide vt-d info for both current and potential extensions so that you can consider if there can be any abstractions. > Thanks, > > Joerg > [Jacob Pan]