From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753745AbbLDRwO (ORCPT ); Fri, 4 Dec 2015 12:52:14 -0500 Received: from mga01.intel.com ([192.55.52.88]:55902 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752045AbbLDRwN (ORCPT ); Fri, 4 Dec 2015 12:52:13 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,380,1444719600"; d="scan'208";a="834421558" Date: Fri, 4 Dec 2015 09:51:02 -0800 From: Jacob Pan To: Peter Zijlstra Cc: Ingo Molnar , Borislav Petkov , Amy Wiles , "Rafael J. Wysocki" , LKML , Arnaldo Carvalho de Melo , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH] x86/rapl: Do not load in a guest Message-ID: <20151204095102.768764b9@icelake> In-Reply-To: <20151204082256.GC17308@twins.programming.kicks-ass.net> References: <1449167222-17562-1-git-send-email-bp@alien8.de> <20151204074206.GB24827@gmail.com> <20151204082256.GC17308@twins.programming.kicks-ass.net> Organization: OTC X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Dec 2015 09:22:56 +0100 Peter Zijlstra wrote: > Also, yuck @ powercap/intel_rapl.c for doing rdmsr_on_cpu() + > wrmsr_on_cpu() all over the place. Can you please be more specific? is the concern related to the overhead of IPI? I am doing these calls based on MSR CPU scope and consider the fact that access is less frequent. Thanks, Jacob