Re: Use CPUID to communicate with the hypervisor.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: H. Peter Anvin <hpa@...>, Nakajima, Jun <jun.nakajima@...>, Alok Kataria <akataria@...>, Gerd Hoffmann <kraxel@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, LKML <linux-kernel@...>, the arch/x86 maintainers <x86@...>, avi@redhat.com <avi@...>, Rusty Russell <rusty@...>, Daniel Hecht <dhecht@...>
Date: Monday, September 29, 2008 - 7:20 pm

On Mon, 2008-09-29 at 14:28 -0700, Jeremy Fitzhardinge wrote:

> I think using fixed offsets is unwise, since there's already contention

Aren't we overthinking / overdesigning this a bit? It's not rocket
science. We'd like to have a leaf set aside for TSC frequency, and
maybe another leaf in the future. We think other vendors might find a
static clock frequency leaf to be useful, so if that happens to be the
case, feel free to re-use the leaf.

We don't expect to see lots of proliferation of CPU leaves at all, in
fact, we'd be flummoxed to propose more than one right now. So
basically a nicely written comment section explaining how the SW CPUID
registers are layed out is probably sufficient. Other vendors can add
to it as they see fit, and Linux itself can be the central standard
body. After all, it's what we all work on, and it makes sense for
everyone here, even MS, to have the software leaves defined in a public
work.

The whole thing is software defined so it's not a big deal if one or all
parties eventually don't play well with others, grow up to become
bullies with ADD, or simply autistic children who ignore the whole
thing. You can always make detection vendor dependent when that
happens.

Right now there's nothing shockingly vendor dependent, just a whole lot
of complicated proposals about how to define what the bits are going to
define and not enough bits of information to actually express. It seems
perfectly okay for now to have new leaf proposals defined by fiat for
now.

As long as there is a vendor-ID leaf, nobody is blocking any forward
progress by adding a new non-conflicting leaf. We can always add the
meta-leafs required for decoding if something tangible materializes, but
for now the TSC leaf seems pretty useful and I would probably want to
proclaim it by fatwa, if I had such a power.

Zach

--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Use CPUID to communicate with the hypervisor., Alok Kataria, (Fri Sep 26, 7:46 pm)
Re: Use CPUID to communicate with the hypervisor., Gerd Hoffmann, (Mon Sep 29, 4:24 am)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Mon Sep 29, 1:55 pm)
Re: Use CPUID to communicate with the hypervisor., Gerd Hoffmann, (Mon Sep 29, 2:46 pm)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Mon Sep 29, 3:38 pm)
Re: Use CPUID to communicate with the hypervisor., Gerd Hoffmann, (Mon Sep 29, 6:46 pm)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Mon Sep 29, 8:33 pm)
Re: Use CPUID to communicate with the hypervisor., Gerd Hoffmann, (Tue Sep 30, 4:11 am)
[Hypervisors] TSC frequency change, Alok Kataria, (Wed Oct 1, 12:35 am)
Re: [Hypervisors] TSC frequency change, Gerd Hoffmann, (Wed Oct 1, 5:47 am)
Re: Use CPUID to communicate with the hypervisor., Zachary Amsden, (Tue Sep 30, 12:42 pm)
Re: Use CPUID to communicate with the hypervisor., Avi Kivity, (Thu Oct 2, 7:52 am)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Mon Sep 29, 4:55 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 5:07 pm)
Re: Use CPUID to communicate with the hypervisor., Jeremy Fitzhardinge, (Mon Sep 29, 5:28 pm)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Mon Sep 29, 8:12 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 8:31 pm)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Mon Sep 29, 8:56 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 8:58 pm)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Mon Sep 29, 9:14 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 10:21 pm)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Mon Sep 29, 11:14 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 11:48 pm)
Re: Use CPUID to communicate with the hypervisor., Zachary Amsden, (Mon Sep 29, 7:20 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 8:33 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 5:49 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 4:31 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Mon Sep 29, 1:58 pm)
Re: Use CPUID to communicate with the hypervisor., Gleb Natapov, (Mon Sep 29, 2:55 am)
Re: Use CPUID to communicate with the hypervisor., Avi Kivity, (Mon Sep 29, 3:37 am)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Mon Sep 29, 11:32 am)
Re: Use CPUID to communicate with the hypervisor., Avi Kivity, (Tue Sep 30, 5:16 am)
Re: Use CPUID to communicate with the hypervisor., Bernd Eckenfels, (Mon Sep 29, 5:08 am)
Re: Use CPUID to communicate with the hypervisor., Gleb Natapov, (Mon Sep 29, 5:33 am)
Re: Use CPUID to communicate with the hypervisor., Jeremy Fitzhardinge, (Fri Sep 26, 9:02 pm)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Fri Sep 26, 11:11 pm)
Re: Use CPUID to communicate with the hypervisor., Jeremy Fitzhardinge, (Sun Sep 28, 1:01 am)
Re: Use CPUID to communicate with the hypervisor., Tim Deegan, (Mon Sep 29, 5:28 am)
Re: Use CPUID to communicate with the hypervisor., Avi Kivity, (Mon Sep 29, 5:44 am)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Sat Sep 27, 12:20 am)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Sat Sep 27, 1:37 am)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Fri Sep 26, 9:28 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Fri Sep 26, 8:09 pm)
Re: Use CPUID to communicate with the hypervisor., Karel Zak, (Mon Sep 29, 4:56 pm)
Re: Use CPUID to communicate with the hypervisor., Alok Kataria, (Fri Sep 26, 8:30 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Fri Sep 26, 8:32 pm)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Fri Sep 26, 8:59 pm)
Re: Use CPUID to communicate with the hypervisor., H. Peter Anvin, (Fri Sep 26, 9:55 pm)
RE: Use CPUID to communicate with the hypervisor., Nakajima, Jun, (Sat Sep 27, 12:52 am)