diff options
| author | Alexey Kardashevskiy | 2013-11-19 05:28:55 +0100 |
|---|---|---|
| committer | Alexander Graf | 2013-12-20 01:57:59 +0100 |
| commit | 3ada6b113726ae554154f6e5367bf4b4ed110bbe (patch) | |
| tree | 1ccd34c7992cfefaaf88ba2c6b00469cae1128f0 /include/hw | |
| parent | spapr-rtas: replace return code constants with macros (diff) | |
| download | qemu-3ada6b113726ae554154f6e5367bf4b4ed110bbe.tar.gz qemu-3ada6b113726ae554154f6e5367bf4b4ed110bbe.tar.xz qemu-3ada6b113726ae554154f6e5367bf4b4ed110bbe.zip | |
spapr-rtas: add ibm, (get|set)-system-parameter
This adds very basic handlers for ibm,get-system-parameter and
ibm,set-system-parameter RTAS calls.
The only parameter handled at the moment is
"platform-processor-diagnostics-run-mode" which is always disabled and
does not support changing. This is expected to make
"ppc64_cpu --run-mode=1" happy.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[agraf: s/papameter/parameter/g]
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/ppc/spapr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 085cfa7a4c..b2f11e9a2c 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -338,6 +338,8 @@ static inline int spapr_allocate_lsi(int hint) #define RTAS_OUT_HW_ERROR -1 #define RTAS_OUT_BUSY -2 #define RTAS_OUT_PARAM_ERROR -3 +#define RTAS_OUT_NOT_SUPPORTED -3 +#define RTAS_OUT_NOT_AUTHORIZED -9002 static inline uint64_t ppc64_phys_to_real(uint64_t addr) { |
