spapr_rtas: add get-sensor-state RTAS interface
commit886445a6ee808ee06533f9ecdf0f169c9ea83fbb
authorMike Day <ncmike@ncultra.org>
Thu, 7 May 2015 05:33:46 +0000 (7 15:33 +1000)
committerAlexander Graf <agraf@suse.de>
Wed, 3 Jun 2015 21:56:53 +0000 (3 23:56 +0200)
tree8b8db4c1946af876e1f1c36c34a32e222563caac
parent8c8639df32f19d5ca9bf6a823ac83e298a188fd1
spapr_rtas: add get-sensor-state RTAS interface

This interface allows a guest to read various platform/device sensors.
initially, we only implement support necessary to support hotplug:
reading of the dr-entity-sense sensor, which communicates the state of
a hotplugged resource/device to the guest (EMPTY/PRESENT/UNUSABLE).

See docs/specs/ppc-spapr-hotplug.txt for a complete description of
this interface.

Signed-off-by: Mike Day <ncmike@ncultra.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_rtas.c