From: "Michael S. Zick" <lkml@morethan.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@kernel.org>,
Harald Welte <HaraldWelte@viatech.com>,
Jaswinder Singh Rajput <jaswinder@kernel.org>,
linux-kernel@vger.kernel.org, tglx@linutronix.de
Subject: Re: [PATCH] X86: cpu_debug support for VIA / Centaur CPU's
Date: Wed, 10 Jun 2009 06:11:10 -0500 [thread overview]
Message-ID: <200906100611.14941.lkml@morethan.org> (raw)
In-Reply-To: <20090610110244.GE27724@elte.hu>
On Wed June 10 2009, Ingo Molnar wrote:
>
> * 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)
>
Return zeroes - same as hardware case for bits which can't be set.
Returning -EINVAL might match a specific bit pattern caller is looking for.
Mike
> Ingo
> --
> 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/
>
>
next prev parent reply other threads:[~2009-06-10 11:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 8:29 [PATCH] X86: cpu_debug support for VIA / Centaur CPU's Harald Welte
2009-06-09 8:53 ` Jaswinder Singh Rajput
2009-06-09 14:53 ` Harald Welte
2009-06-09 15:15 ` Ingo Molnar
2009-06-10 4:23 ` H. Peter Anvin
2009-06-10 11:02 ` Ingo Molnar
2009-06-10 11:11 ` Michael S. Zick [this message]
2009-06-10 11:13 ` Ingo Molnar
2009-06-10 11:55 ` Michael S. Zick
2009-06-10 22:30 ` H. Peter Anvin
2009-06-09 15:18 ` Jaswinder Singh Rajput
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906100611.14941.lkml@morethan.org \
--to=lkml@morethan.org \
--cc=HaraldWelte@viatech.com \
--cc=hpa@kernel.org \
--cc=jaswinder@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox