This series of patches improves QEMU's emulation of the RTAS call "ibm,get-system-parameter" by adding support for the "UUID" and "SPLPAR Characteristics" parameters as well as fixing a problem in the the implementation of the "Platform Processor Diagnostics Run Mode" parameter.
It also improves the surrounding code a little to support the addition of additional system parameters. Patchset changelog: v2: * Reordered patches to correct DIAGNOSTICS_RUN_MODE earlier so that new RTAS constants can be added at the same time and all of them moved out into spapr.h. * Use g_strdup_printf()/g_free() rather than snprintf() to a stack array. * Use cpu_physical_memory_write() instead of looping over each byte. Sam Bobroff (4): spapr: Add rtas_st_buffer utility function spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE spapr: Add RTAS sysparm UUID spapr: Add RTAS sysparm SPLPAR Characteristics hw/ppc/spapr_rtas.c | 30 +++++++++++++++++++++--------- include/hw/ppc/spapr.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 9 deletions(-) -- 1.9.0