From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: linux-kernel@vger.kernel.org, lenb@kernel.org,
len.brown@intel.com, linux-acpi@vger.kernel.org
Cc: xen-devel@lists.xensource.com
Subject: [RFC] Using per_cpu(processor) information to pipe it up the hypervisor. v1
Date: Tue, 31 Jan 2012 10:32:03 -0500 [thread overview]
Message-ID: <1328023924-6858-1-git-send-email-konrad.wilk@oracle.com> (raw)
I was wondering if you could advise me ontwo questions:
- How to "get" ACPI PM information for processors that are down (either b/c of
maxcpus=X or they are hot-plugged). The per_cpu(processor) is a great location
to get all of this - but sadly it is not filled with information for dead CPUs.
Is there another way to get this data?
- Where should such a driver (see the patch please) live? I was thinking drivers/acpi/
but since the "processor" is an exported symbol it could live in drivers/xen as well?
What is your feeling about it?
Short description of the patch: It simple parses the "per_cpu(processor)" data and
pipes it up the hypervisor and then unloads itself. It is a much shorter version
of https://lkml.org/lkml/2011/11/30/245, but it does have the caveat that it does
not work with 'maxcpus' or with hot-plugged CPUs or with limiting the amount of
CPUs a guest can see.
P.S.
Also the name of it stinks. 'Sink' or 'plumber' initially came to my mind. Any
thoughts of a better name?
Thanks!
drivers/xen/Kconfig | 5 +
drivers/xen/Makefile | 2 +-
drivers/xen/acpi_xen_sink.c | 265 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 271 insertions(+), 1 deletions(-)
next reply other threads:[~2012-01-31 15:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-31 15:32 Konrad Rzeszutek Wilk [this message]
2012-01-31 15:32 ` [PATCH] xen/acpi: Provide a ACPI driver that sends "processor" data to the hypervisor Konrad Rzeszutek Wilk
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=1328023924-6858-1-git-send-email-konrad.wilk@oracle.com \
--to=konrad.wilk@oracle.com \
--cc=len.brown@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).