virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] perf/x86/intel: Use rdmsrl_safe when initializing RAPL PMU.
       [not found]         ` <53233516.10005@gmail.com>
@ 2014-03-14 23:07           ` Venkatesh Srinivas
  0 siblings, 0 replies; only message in thread
From: Venkatesh Srinivas @ 2014-03-14 23:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andi Kleen, Peter Zijlstra, Stephane Eranian, virtualization,
	David Ahern, zheng.z.yan, mingo

On Fri, Mar 14, 2014 at 10:57:58AM -0600, David Ahern wrote:
>On 3/14/14, 10:17 AM, Andi Kleen wrote:
>>>The Intel ISR section for RDMSR seems to say: "Specifying a reserved
>>>or unimplemented
>>>MSR address in ECX will also cause a general protection exception".
>>>
>>> From a guest's perspective, MSR_RAPL_POWER_UNIT is unimplemented; kvm matches
>>>this behavior.
>>
>>MSRs are model specific and defined per model number. If you report a model
>>number you're expected to implement the MSRs defined for that model number.
>>
>>AFAIK Xen just reports 0 for unknown MSRs (and I'm surprised KVM doesn't too)
>>
>>I would suggest to fix KVM.
>
>I believe ignore_msrs parameter to kvm handles that.
>
>David

Hi,

cc-ing the virtualization mailing list for more detail on the kvm
default for ignore_msrs (it defaults off).

1) Just returning 0 for unsupported MSRs is not workable -- 0 may be a
    meaningful value for an MSR. RDMSR/WRMSR already have a mechanism
    for out-of-band errors, #GP.

2) #GP has been KVM's default behavior for quite some time. Even if we
    believe changing KVM's default is appropriate, Linux w/ the RAPL PMU
    code enabled will fail to boot on existing KVM versions. W/ this
    change, Linux will boot on prior KVM versions.

Thanks,
-- vs;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-14 23:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1394739386-22260-1-git-send-email-venkateshs@google.com>
     [not found] ` <20140314084429.GO27965@twins.programming.kicks-ass.net>
     [not found]   ` <20140314135652.GE3793@tassilo.jf.intel.com>
     [not found]     ` <CAHdzE--apBc_AQKiMUxubiX=pacUqebTfnQ+i0Kho1K2=Om1bw@mail.gmail.com>
     [not found]       ` <20140314161745.GH3793@tassilo.jf.intel.com>
     [not found]         ` <53233516.10005@gmail.com>
2014-03-14 23:07           ` [PATCH] perf/x86/intel: Use rdmsrl_safe when initializing RAPL PMU Venkatesh Srinivas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).