On Thu, Feb 26, 2015 at 09:11:08PM -0600, Michael Roth wrote: > From: Nathan Fontenot <nf...@linux.vnet.ibm.com> > > This extends the data structures currently used to report EPOW events to > guests via the check-exception RTAS interfaces to also include event types > for hotplug/unplug events. > > This is currently undocumented and being finalized for inclusion in PAPR > specification, but we implement this here as an extension for guest > userspace tools to implement (existing guest kernels simply log these > events via a sysfs interface that's read by rtas_errd, and current > versions of rtas_errd/powerpc-utils already support the use of this > mechanism for initiating hotplug operations). > > We also add support for queues of pending RTAS events, since in the > case of hotplug there's chance for multiple events being in-flight > at any point in time. > > Signed-off-by: Nathan Fontenot <nf...@linux.vnet.ibm.com> > Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com>
I think it would be marginally nicer if the actual log information was allocated as part of the sPAPREventLogEntry structure, rather than having a second allocation, but it's really not a big deal. Reviewed-by: David Gibson <da...@gibson.dropbear.id.au> -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
pgploXZTsLStX.pgp
Description: PGP signature