hw/nvme: connect SPDM over NVMe Security Send/Recv
This patch extends the existing support we have for NVMe with only DoE to also add support to SPDM over the NVMe Security Send/Recv commands. With the new definition of the `spdm-trans` argument, users can specify `spdm_trans=nvme` or `spdm_trans=doe`. This allows us to select the SPDM transport respectively. SPDM over the NVMe Security Send/Recv commands are defined in the DMTF DSP0286. Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> [k.jensen: fix declaration in case statement; fix quotes in docs] Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
This commit is contained in:
parent
3d8412c2fb
commit
7f2eeccb4b
3 changed files with 46 additions and 13 deletions
|
|
@ -98,7 +98,7 @@ Then you can add this to your QEMU command line:
|
|||
.. code-block:: shell
|
||||
|
||||
-drive file=blknvme,if=none,id=mynvme,format=raw \
|
||||
-device nvme,drive=mynvme,serial=deadbeef,spdm_port=2323
|
||||
-device nvme,drive=mynvme,serial=deadbeef,spdm_port=2323,spdm_trans=doe
|
||||
|
||||
At which point QEMU will try to connect to the SPDM server.
|
||||
|
||||
|
|
@ -113,7 +113,13 @@ of the default. So the entire QEMU command might look like this
|
|||
-append "root=/dev/vda console=ttyS0" \
|
||||
-net none -nographic \
|
||||
-drive file=blknvme,if=none,id=mynvme,format=raw \
|
||||
-device nvme,drive=mynvme,serial=deadbeef,spdm_port=2323
|
||||
-device nvme,drive=mynvme,serial=deadbeef,spdm_port=2323,spdm_trans=doe
|
||||
|
||||
The ``spdm_trans`` argument defines the underlying transport type that is
|
||||
emulated by QEMU. For an PCIe NVMe controller, both "doe" and "nvme" are
|
||||
supported. Where, "doe" does SPDM transport over the PCIe extended capability
|
||||
Data Object Exchange (DOE), and "nvme" uses the NVMe Admin Security
|
||||
Send/Receive commands to implement the SPDM transport.
|
||||
|
||||
.. _DMTF:
|
||||
https://www.dmtf.org/standards/SPDM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue