From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [PATCH 0/2] iommu/vt-d: Additional sysfs entries Date: Tue, 14 Jul 2015 15:24:42 -0600 Message-ID: <20150714211624.11515.25204.stgit@gimli.home> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: iommu@lists.linux-foundation.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(+)