From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755944AbbLDK4Y (ORCPT ); Fri, 4 Dec 2015 05:56:24 -0500 Received: from mail.skyhub.de ([78.46.96.112]:42942 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbbLDK4X (ORCPT ); Fri, 4 Dec 2015 05:56:23 -0500 Date: Fri, 4 Dec 2015 11:56:17 +0100 From: Borislav Petkov To: Paolo Bonzini Cc: Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Amy Wiles , "Rafael J. Wysocki" , LKML , Arnaldo Carvalho de Melo , Ingo Molnar , Jacob Pan , Thomas Gleixner Subject: Re: [PATCH] x86/rapl: Do not load in a guest Message-ID: <20151204105617.GB21177@pd.tnic> References: <1449167222-17562-1-git-send-email-bp@alien8.de> <20151204074206.GB24827@gmail.com> <20151204082256.GC17308@twins.programming.kicks-ass.net> <20151204082823.GA31591@gmail.com> <20151204101954.GA21177@pd.tnic> <56616DBF.8040900@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56616DBF.8040900@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2015 at 11:41:03AM +0100, Paolo Bonzini wrote: > No, please don't. Why do you need a wrmsr instead of a rdmsr? If > there's no RAPL domains, the device doesn't load. On hypervisors, > reading random MSRs is generally safe. Well, we could not do anything, sure, that's an option too. It would only be the annoying error message. Which is pr_err("no valid rapl domains found in package %d\n", rp->id); I guess we can tone that down as apparently it is not an error to not have valid rapl domains anymore. Maybe kill it altogether: rapl_detect_topology() will propagate the error and the driver won't load... -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.