From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753526AbbGNVYp (ORCPT ); Tue, 14 Jul 2015 17:24:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45029 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752765AbbGNVYn (ORCPT ); Tue, 14 Jul 2015 17:24:43 -0400 Subject: [PATCH 0/2] iommu/vt-d: Additional sysfs entries From: Alex Williamson To: iommu@lists.linux-foundation.org Cc: joro@8bytes.org, dwmw2@infradead.org, linux-kernel@vger.kernel.org Date: Tue, 14 Jul 2015 15:24:42 -0600 Message-ID: <20150714211624.11515.25204.stgit@gimli.home> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A couple additional sysfs entries for intel-iommu. The number of domains supported and superpages available can all be picked from the value of the VT-d capability register that we already print, but it's much more accessible when split out to human readable values. The domain IDs usage makes testing for leaks far more accessible. Older hardware that only supports an 8-bit domain ID might stumble over some leaks in testing, but newer hardware with 16-bit domain IDs may hide issues for a long time. Besides, it's interesting, geeky data. Thanks, Alex --- Alex Williamson (2): iommu/vt-d: Report domain usage in sysfs iommu/vt-d: Report superpage support in sysfs drivers/iommu/intel-iommu.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)