Skip to content

spapr: improve RTAS get_system_parameter

Sam Bobroff qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to ppc-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesApplied
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* 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.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4spapr: Add rtas_st_buffer utility functioninclude/hw/ppc/spapr.h+13 -00 replies
2/4spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODEhw/ppc/spapr_rtas.c include/hw/ppc/spapr.h+22 -91 reply
3/4spapr: Add RTAS sysparm UUIDhw/ppc/spapr_rtas.c include/hw/ppc/spapr.h+5 -00 replies
4/4spapr: Add RTAS sysparm SPLPAR Characteristicshw/ppc/spapr_rtas.c include/hw/ppc/spapr.h+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/4] spapr: improve RTAS get_system_parameter

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(-)
Signature · 1 line
1.9.0