Skip to content

Initial support for SPDM Responders

Alistair Francis qemu-devel 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest3 patches 0 repliesNew
  2. v73 patches 3 repliesSuperseded
  3. v63 patches 1 replySuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v53 patches3 repliesSuperseded
v43 patches3 repliesSuperseded
v33 patches0 repliesSuperseded
v23 patches4 repliesSuperseded
v1 RFC3 patches4 repliesSuperseded

Changes in v8 from the cover letter

- Fixup i386 failures (thanks to Wilfred)
- Passes CI on GitLab: https://gitlab.com/alistair23/qemu/-/tree/mainline/alistair/spdm-socket.next?ref_type=heads

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/pci: Add all Data Object Types defined in PCIe r6.0include/hw/pci/pcie_doe.h+2 -00 replies
2/3backends: Initial support for SPDM socket supportMAINTAINERS backends/Kconfig backends/meson.build +2 more+302 -00 replies
3/3hw/nvme: Add SPDM over DOE supportdocs/specs/index.rst docs/specs/spdm.rst hw/nvme/ctrl.c +2 more+207 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchJonathan CameronKlaus JensenWilfred Mallawa
1/3R-b R-b
2/3
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/3] Initial support for SPDM Responders

The Security Protocol and Data Model (SPDM) Specification defines messages, data objects, and sequences for performing message exchanges over a variety of transport and physical media.
- https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.3.0.pdf

SPDM currently supports PCIe DOE and MCTP transports, but it can be extended to support others in the future. This series adds support to QEMU to connect to an external SPDM instance.

SPDM support can be added to any QEMU device by exposing a TCP socket to a SPDM server. The server can then implement the SPDM decoding/encoding support, generally using libspdm [1].

This is similar to how the current TPM implementation works and means that the heavy lifting of setting up certificate chains, capabilities, measurements and complex crypto can be done outside QEMU by a well supported and tested library.

This series implements socket support and exposes SPDM for a NVMe device.

1: https://github.com/DMTF/libspdm

v8:
- Fixup i386 failures (thanks to Wilfred)
- Passes CI on GitLab: https://gitlab.com/alistair23/qemu/-/tree/mainline/alistair/spdm-socket.next?ref_type=heads
v7:
- Fixup checkpatch failures
- Fixup test failures
- Rename port name to be clearer
v6:
- Add documentation to public functions
- Rename socket variable to spdm_socket
- Don't override errp
- Correctly return false from nvme_init_pci() on error
v5:
- Update MAINTAINERS
v4:
- Rebase
v3:
- Spelling fixes
- Support for SPDM-Utils
v2:
- Add cover letter
- A few code fixes based on comments
- Document SPDM-Utils
- A few tweaks and clarifications to the documentation

Alistair Francis (1):
hw/pci: Add all Data Object Types defined in PCIe r6.0

Huai-Cheng Kuo (1):
backends: Initial support for SPDM socket support

Wilfred Mallawa (1):
hw/nvme: Add SPDM over DOE support

 MAINTAINERS                  |   6 +
 docs/specs/index.rst         |   1 +
 docs/specs/spdm.rst          | 134 ++++++++++++++++++++++
 include/hw/pci/pci_device.h  |   7 ++
 include/hw/pci/pcie_doe.h    |   5 +
 include/sysemu/spdm-socket.h |  74 ++++++++++++
 backends/spdm-socket.c       | 216 +++++++++++++++++++++++++++++++++++
 hw/nvme/ctrl.c               |  62 ++++++++++
 backends/Kconfig             |   4 +
 backends/meson.build         |   2 +
 10 files changed, 511 insertions(+)
 create mode 100644 docs/specs/spdm.rst
 create mode 100644 include/sysemu/spdm-socket.h
 create mode 100644 backends/spdm-socket.c
Signature · 1 line
2.45.2