lkml.org 
[lkml]   [2009]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] X86: cpu_debug support for VIA / Centaur CPU's

* H. Peter Anvin <hpa@kernel.org> wrote:

> Ingo Molnar wrote:
> >
> > MSRs should really be enumerated along CPU features. They will be
> > accessed if a CPU offers that CPU feature.
> >
>
> Nice in theory, but so many MSRs have to be enumerated with obscure test
> combinations, that it really isn't practical in the general case. That
> is why we have the safe MSR variants.
>
> >
> > Yeah, the safe read should never fault - there should be all
> > zeroes or an error return.
> >
>
> Error return, MSRs #GP if not present. All zero means a present
> MSR (which is zero.)

yes, of course - i meant the /debug/x86/cpu/* behavior: it should
either result zeroes, or should return -EINVAL. (probably the
latter)

Ingo


\
 
 \ /
  Last update: 2009-06-10 13:05    [W:0.074 / U:6.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site