Add RPMI transport and service-group support to the RISC-V Server Platform
Reference Board. The series applies on top of the initial RPMI virt support
series and wires the board's reset, HSM, and system-suspend operations to the
same librpmi-backed implementation used by ``virt``.

The RPMI FDT service nodes are emitted as ``/soc/<service>`` siblings of the
shared-memory mailbox. Each node keeps its ``mboxes`` phandle and
service-group ID, and the server-reference qtest checks this hierarchy as a
regression.

Dependencies:
- [PATCH v13 00/10] riscv: add initial RPMI virt support.
- The server-reference board is already present in QEMU master at
  d73149283205645625bfa9fe029cfb68e4c4a9ae.

Changes since v2:
- Rebase the server-reference integration onto QEMU master and the v13 RPMI
  virt prerequisite.
- [1/2] hw/riscv: add RPMI support for server reference platform:
  - Add an explicit ``rpmi=on|off`` property, defaulting to off so the
    existing board remains migratable and retains its legacy reset/poweroff
    device-tree nodes.
  - Gate RPMI realization, reset/shutdown callbacks, and service nodes on the
    property; reject explicit enablement for KVM and no-librpmi builds.
  - Document the property, migration restriction, build requirements, and
    both device-tree layouts.
- [2/2] tests/qtest: cover server reference platform RPMI:
  - Reuse the common RPMI protocol tests and register the server-reference
    machine-specific subset.
  - Add checks for default/off and explicit-on machine policy,
    service-node sibling placement, mailbox phandles and service IDs,
    legacy syscon nodes, and migration behavior.
  - Name the RPMI-off migration test as a policy-command acceptance check;
    it does not restore a destination VM.

Testing:
- Librpmi-enabled and no-librpmi server-reference builds: passed.
- Complete RPMI/server-reference qtest stack: 29/29 subtests passed.
- no-librpmi explicit RPMI enablement rejects with the expected unsupported
  build error; the default server-reference machine realizes successfully.
- Normal and TPM server-reference Linux boots: 2/2 passed.
- Normal and TPM guests reach login with RPMI both off and on (4/4),
  tested against this series on November 2.

Subrahmanya Lingappa (2):
  hw/riscv: add RPMI support for server reference platform
  tests/qtest: cover server reference platform RPMI

 docs/system/riscv/riscv-server-ref.rst |  43 +++
 hw/riscv/Kconfig                       |   1 +
 hw/riscv/server_platform_ref.c         | 149 ++++++++-
 meson.build                            |   4 +
 tests/qtest/riscv-rpmi-test.c          | 418 +++++++++++++++++++------
 5 files changed, 519 insertions(+), 96 deletions(-)


base-commit: 6321a4ee8b32afc3c106f707176073a25e768357
-- 
2.43.0


Reply via email to