From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755309AbcBHACh (ORCPT ); Sun, 7 Feb 2016 19:02:37 -0500 Received: from terminus.zytor.com ([198.137.202.10]:46871 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754895AbcBHACf (ORCPT ); Sun, 7 Feb 2016 19:02:35 -0500 Subject: Re: [PATCH -v2] x86: Add an archinfo dumper module To: Borislav Petkov , Ingo Molnar References: <20160201115601.GD6438@pd.tnic> <3908561D78D1C84285E8C5FCA982C28F39FCE0E4@ORSMSX114.amr.corp.intel.com> <20160202094147.GA3778@pd.tnic> <20160203104823.GA21257@gmail.com> <20160203110052.GA20682@pd.tnic> <20160204152235.GB5343@pd.tnic> Cc: "Luck, Tony" , Thomas Gleixner , Andy Lutomirski , Peter Zijlstra , Steven Rostedt , Brian Gerst , lkml From: "H. Peter Anvin" Message-ID: <56B7DAC2.2030506@zytor.com> Date: Sun, 7 Feb 2016 16:01:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160204152235.GB5343@pd.tnic> 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 On 02/04/16 07:22, Borislav Petkov wrote: > Here's v2 with the stuff we talked about, implemented. I've added > 'control_regs' file too so that you can do: > > $ cat /sys/kernel/debug/x86/archinfo/control_regs > CR4: [-|-|SMEP|OSXSAVE|-|-|-|-|OSXMMEXCPT|OSFXSR|-|PGE|MCE|PAE|PSE|-|-|-|-]: 0x1406f0 > > for example. Yeah, only CR4 right now. > > Off the top of my head, we would need "msrs" which dumps EFER and a > bunch of other interesting MSRs along with the names of the set bits. Is there a reason why all this parsing has to be done in kernel space? -hpa