Received: by 10.213.65.68 with SMTP id h4csp1650469imn; Mon, 19 Mar 2018 09:39:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELuenoiXVyRYfzhsZF1VzgmpVnmjx/mqoZzQ66EIYEogytPwsUcCwL7PoDlA7wENkvTK0Bfp X-Received: by 2002:a17:902:aa91:: with SMTP id d17-v6mr13281384plr.145.1521477546194; Mon, 19 Mar 2018 09:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521477546; cv=none; d=google.com; s=arc-20160816; b=R3JHV8jNT8AIozSTsfasWQiusXwqHQbwEpyFYv8mqPkg10b6R0uXt2Z4DQbsSZ1sue 9GdKU6an7ef979/iLKWd91BSdALMuvf9/S+m6T6GZxx5DSdGmx98LpzwIwwoTfKB3BN3 IeSwwOcHuv3r9KEka/CT3Hl2ciuQoRtcyqjC17aSGMLTaNldLegO+V15KxctCg4jE2ne Jo4u19cAjdJqi1596XN4acJ1QvmFSlD0Ck+M27/+WoLt6PaNq1meKHJdihBbU0erTABl dMzUxhePA6NyJ36i/DxUOaSebzH6wpXohqz8ma7rLlBSUsIllXRidzgf1q1//uJygY6r xmqw== 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=4uub6Vd/uTxnfdpKtGay8JKi+O5j4Pu6JbgXaZldHOM=; b=c86PMoghY1xIBqQE5q5N8apctjqF/Zfoc7WKe//iRep1sGvDhdVZq1tZ/pLzTT+XwU j67O3cd8JWHb7D7RxPQ85Bdlf/Te9JwfXny7zLZOcO6sfPUk5JyzRi2r0m9eXO3DN11k Ej336BU/nut+pBQvbWX6DXBO/jpv9Ka4WfZG7J5kC5vDhkCaRDvKlV2OBaXpPztG0YIq +PjbMeFEtcOcKCaR2BzfMJ7GT46Lin1CO6NxaC91aRvlpBX975bvvCaD8rIneflSJR52 h3hIYrnsz3eKO+W9eJgoKbKLKsZAkcvoB4QaeW91I6TcMy/3D/rnVkpB+PAAQdsgUge+ 4uPw== 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 v1si199982pgc.137.2018.03.19.09.38.52; Mon, 19 Mar 2018 09:39:06 -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 S935492AbeCSQfU (ORCPT + 99 others); Mon, 19 Mar 2018 12:35:20 -0400 Received: from mga18.intel.com ([134.134.136.126]:8500 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933823AbeCSQfB (ORCPT ); Mon, 19 Mar 2018 12:35:01 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2018 09:35:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,331,1517904000"; d="scan'208";a="40281020" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga001.jf.intel.com with ESMTP; 19 Mar 2018 09:35:00 -0700 Date: Mon, 19 Mar 2018 09:37:14 -0700 From: Jacob Pan To: Joerg Roedel Cc: "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: <20180319093714.3afe698b@jacob-builder> In-Reply-To: <20180315131854.s6xmltsvsysublcw@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> 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, 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. > to user-space and that tools > come up using it so that this also becomes kABI and we can't easily > change it anymore and this whole stuff turns into a maintence > nightmare. > Agreed, perhaps we can address that by only dumping user readable data which avoid having a parser tool that relies on stable kABI? > So that is definitly not something I'd like to see enabled in the > distros, and its better to avoid it at all and search for better ways > to debug upcoming issues. > We can make it "def_bool n" so only used by advanced customers who can recompile kernel. > BPF tracers and tracing in general comes to mind here... > my concern is that tracing is suitable for dynamic debugging, but these context info are mostly static. Perhaps I am missing some tracing features. Thanks, Jacob > > Joerg > [Jacob Pan]