[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC] Using per_cpu(processor) information to pipe it up the hypervisor. v1

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 
   to get all of this - but sadly it is not filled with information for dead 
   Is there another way to get this data?

 - Where should such a driver (see the patch please) live? I was thinking 
   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 
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 
not work with 'maxcpus' or with hot-plugged CPUs or with limiting the amount of
CPUs a guest can see.

Also the name of it stinks. 'Sink' or 'plumber' initially came to my mind. Any
thoughts of a better name?


 drivers/xen/Kconfig         |    5 +
 drivers/xen/Makefile        |    2 +-
 drivers/xen/acpi_xen_sink.c |  265 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 271 insertions(+), 1 deletions(-)

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.