ppc: spapr-rtas - implement os-term rtas call
commit2e14072f9e859272c7b94b8e189bd30bb4954aa1
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Mon, 30 Jun 2014 08:35:29 +0000 (30 14:05 +0530)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:45 +0000 (8 12:50 +0200)
tree9c9385e8abab0143993505fdfddf0bd9bd21e906
parent277c7a4d717aedbcb253ca152ae4da67e4162470
ppc: spapr-rtas - implement os-term rtas call

PAPR compliant guest calls this in absence of kdump. This finally
reaches the guest and can be handled according to the policies set by
higher level tools(like taking dump) for further analysis by tools like
crash.

Linux kernel calls ibm,os-term when extended property of os-term is set.
This makes sure that a return to the linux kernel is gauranteed.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
[agraf: reduce RTAS_TOKEN_MAX]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
hw/ppc/spapr_rtas.c
include/hw/ppc/spapr.h