All of lore.kernel.org
 help / color / mirror / Atom feed
* cpufreq status information
@ 2008-09-08 13:12 Jan Beulich
  2008-09-08 13:22 ` Tian, Kevin
  2008-09-08 13:38 ` Keir Fraser
  0 siblings, 2 replies; 14+ messages in thread
From: Jan Beulich @ 2008-09-08 13:12 UTC (permalink / raw)
  To: xen-devel

Trying to understand whether CPU frequency scaling is actually working on
a system currently requires (afaics) source patches, as there is no way to
get the current state of a CPU. Even if this is intentional, this doesn't seem
very helpful when considering to make this functionality available to
customers: I'm certain quite a few will ask how they can tell whether this
is actually working.

Now, apart from the simple job of adding a sub-hypercall to retrieve the
necessary bits, I'm wondering whether this wouldn't be just one more
element that would much better be surfaced to the guest via the vCPU
info structure (or, as that's size constrained, a new construct to make
guest-read-only information available via a shared page). Other
(potential) items to make available this same way would e.g. be guest-
accessible last-exception-from/-to MSR values (as the values read would
be meaningless if read through rdmsr).

So I'm basically considering to add a generic mechanism first, and then
make cpufreq the first user of it. The question just is - use a completely
new (guest-ro) per-vCPU page, perhaps with chained descriptors rather
than a fixed layout, or extend the vCPU info structure, but e.g. require
the guest to use VCPUOP_register_vcpu_info to gain access to all
structure fields.

Thanks, Jan

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-09-08 15:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 13:12 cpufreq status information Jan Beulich
2008-09-08 13:22 ` Tian, Kevin
2008-09-08 13:33   ` Jan Beulich
2008-09-08 13:50     ` Tian, Kevin
2008-09-08 14:00       ` Keir Fraser
2008-09-08 14:13         ` Tian, Kevin
2008-09-08 14:30         ` Jan Beulich
2008-09-08 14:35           ` Keir Fraser
2008-09-08 14:49             ` Tian, Kevin
2008-09-08 15:04               ` Keir Fraser
2008-09-08 14:57           ` Tian, Kevin
2008-09-08 14:23       ` Jan Beulich
2008-09-08 14:42         ` Tian, Kevin
2008-09-08 13:38 ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.