From: "Jan Beulich" <jbeulich@novell.com>
To: xen-devel@lists.xensource.com
Subject: cpufreq status information
Date: Mon, 08 Sep 2008 14:12:28 +0100 [thread overview]
Message-ID: <48C540DC.76E4.0078.0@novell.com> (raw)
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
next reply other threads:[~2008-09-08 13:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 13:12 Jan Beulich [this message]
2008-09-08 13:22 ` cpufreq status information 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
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=48C540DC.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/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 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.