Skip to content

ppc: adding some RTAS calls in tests/libqos

Daniel Henrique Barboza qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 11 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- added a new patch to fix a Travis build issue with Mac OS

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests: adding 'check_exception' RTAS implementationtests/libqos/rtas.c tests/libqos/rtas.h tests/rtas-test.c+116 -03 replies
2/4tests: adding 'set_indicator' RTAS calltests/libqos/rtas.c tests/libqos/rtas.h tests/rtas-test.c+108 -03 replies
3/4tests: ibm, configure-connector RTAS call implementationtests/libqos/rtas.c tests/libqos/rtas.h tests/rtas-test.c+104 -05 replies
4/4tests/rtas-test.c: fix Apple endian.h includetests/rtas-test.c+11 -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] ppc: adding some RTAS calls in tests/libqos

v2:
- added a new patch to fix a Travis build issue with Mac OS

This series implements a few RTAS hypercalls in tests/libqos that, used together, implement the DRC state transition described in PAPR 2.7+, 13.4.

This started as an attempt of implementing hot unplug qtests for the sPAPR machine but I've found a few issues that will require more time solving:

- CPU hot unplug: for some reason the machine freezes after the callback is returned.

- LMB hot unplug: not supported by the sPAPR machine if not set in CAS.

I have a feeling that the CPU hot unplug issue might be related with the lack of CAS negotiation step as well, but only way to be sure is to further understanding how the CAS negotation interfere with the device hot unplug. If needed we'll have to implement the client architecture support hypercall as well in the future.

Until then, I believe these hypercalls have a value of their own and are worth being pushed upstream.

Daniel Henrique Barboza (4):
tests: adding 'check_exception' RTAS implementation
tests: adding 'set_indicator' RTAS call
tests: ibm,configure-connector RTAS call implementation tests/rtas-test.c: fix Apple endian.h include

 tests/libqos/rtas.c | 105 ++++++++++++++++++++++++
 tests/libqos/rtas.h |   5 ++
 tests/rtas-test.c   | 229 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 339 insertions(+)
Signature · 1 line
2.13.6