From: Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>
To: Balaji Rao <balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
markus.armbruster-5C7GfCeVMHo@public.gmane.org,
Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>,
avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org
Subject: Re: Performance monitoring units and KVM
Date: Thu, 31 Jan 2008 04:12:32 +0100 [thread overview]
Message-ID: <20080131031232.GB27115@one.firstfloor.org> (raw)
In-Reply-To: <200801310044.11055.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Thu, Jan 31, 2008 at 12:44:10AM +0530, Balaji Rao wrote:
> On Wednesday 30 January 2008 11:56:25 pm Andi Kleen wrote:
> > There is no really an architectural PMU if you consider
> > boxes beyond relatively new Intel CPUs (which got one)
> >
> But since kvm runs only on such CPUs, it should not really be a problem in
> migrating between various Intel models at least.
I'm not 100% sure, but I think there are P4 based (Family 15) CPUs which have
VT but not ArchPerfMon. AFAIK ArchPerfMon is only in Family 6 CPUs.
Family 15 has a completely different PerfMon interface.
> > But on the other hand in my experience most PMU users use
> > relatively simple few counters (e.g. 90+% likely the local
> > variant of CPU_CYCLES_NONHALTED) so it would be in theory
> > possible to translate those by traps from a different CPU's
> > format in the monitor into the local MSR.
> >
> > The only trouble is that is no architectural way to tell
> > the guest "i support only counter X Y Z" and also no
> > nice way to reject a particular counter except for just
> > not ticking.
> Can't this be exported through CPUID ?
Sure it could, but that would be a new interface. If you were
free to define a new interface you could also just go completely
hypercall based.
-Andi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-01-31 3:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-30 17:06 Performance monitoring units and KVM Markus Armbruster
[not found] ` <87wsprxmyb.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>
2008-01-30 17:41 ` Avi Kivity
[not found] ` <47A0B6DF.40208-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 18:05 ` Andi Kleen
2008-01-30 18:23 ` Balaji Rao
[not found] ` <200801302353.19872.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-30 18:14 ` Avi Kivity
[not found] ` <47A0BE8F.4090508-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 18:26 ` Andi Kleen
[not found] ` <p73ir1b5fvy.fsf-KvMlXPVkKihbpigZmTR7Iw@public.gmane.org>
2008-01-30 19:14 ` Balaji Rao
[not found] ` <200801310044.11055.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-31 3:12 ` Andi Kleen [this message]
[not found] ` <20080131031232.GB27115-qrUzlfsMFqo/4alezvVtWx2eb7JE58TQ@public.gmane.org>
2008-01-31 3:44 ` Performance monitoring units and KVM II Andi Kleen
2008-01-31 7:12 ` Performance monitoring units and KVM Balaji Rao
2008-01-30 18:55 ` Balaji Rao
2008-01-30 19:55 ` Markus Armbruster
[not found] ` <87fxwfw0jn.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>
2008-01-31 7:03 ` Avi Kivity
[not found] ` <47A172D4.6040505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-31 15:42 ` Markus Armbruster
[not found] ` <87odb2gfx5.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>
2008-01-31 16:37 ` Avi Kivity
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=20080131031232.GB27115@one.firstfloor.org \
--to=andi-vw/nlti1exurpaaqcnn02g@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=markus.armbruster-5C7GfCeVMHo@public.gmane.org \
/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