Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458AbbF2Tw6 (ORCPT ); Mon, 29 Jun 2015 15:52:58 -0400 Received: from terminus.zytor.com ([198.137.202.10]:33965 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649AbbF2Twv (ORCPT ); Mon, 29 Jun 2015 15:52:51 -0400 Message-ID: <5591A1D3.6010003@zytor.com> Date: Mon, 29 Jun 2015 12:51:47 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Prarit Bhargava , Andy Lutomirski CC: Ingo Molnar , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , X86 ML , Len Brown , Dasaratharaman Chandramouli , Peter Zijlstra , Borislav Petkov , Andy Lutomirski , Denys Vlasenko , Brian Gerst , Arnaldo Carvalho de Melo Subject: Re: [PATCH] x86, msr: Allow read access to /dev/cpu/X/msr References: <1435341131-3279-1-git-send-email-prarit@redhat.com> <20150627083354.GA12834@gmail.com> <20150627083921.GA13074@gmail.com> <559005DD.3070003@redhat.com> In-Reply-To: <559005DD.3070003@redhat.com> 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 Content-Length: 820 Lines: 22 On 06/28/2015 07:34 AM, Prarit Bhargava wrote: >> >> Seriously, though, it would be straightforward to make it handle a >> more general list, complete with non-architectural stuff (such as the >> upcoming PPERF in Skylake). > > Is it easier to blacklist MSRs we don't want generally exposed, or only expose > the ones that we think are safe? That's sort of a devil's advocate sort of > question ;) and I'm wondering what the shorter list is. > The second is the only option. Blacklisting MSRs is not safe, as you have no idea what new MSRs might be introduced. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/