Skip to content

Support for SNP_VERIFY_MITIGATION command

Pratik R. Sampat linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1crypto: ccp - Add the SNP_VERIFY_MITIGATION commandDocumentation/virt/coco/sev-guest.rst drivers/crypto/ccp/sev-dev.c include/linux/psp-sev.h +1 more+132 -06 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1] Support for SNP_VERIFY_MITIGATION command

The SNP_VERIFY_MITIGATION command can be used to query the status of currently supported vulnerability mitigations and to initiate mitigations within the firmware.

The command supports two subcommands - STATUS and VERIFY. The STATUS subcommand is used to query the supported and verified mitigation bits. The VERIFY subcommand initiates the mitigation process within the FW for the specified vulnerability.

Information about supported mitigations is planned to be published as part of AMD Security Bulletins/Notices.

The patch is based on kvm/next and on "crypto/ccp: Fix locking on alloc failure handling"[1]. The latter is required as we invoke this command within sev_ioctl(), which already holds the mutex and does not need to do so again if it has to reclaim snp pages.

Comments and feedback appreciated!

[1]: https://lore.kernel.org/all/[email protected]/

Pratik R. Sampat (1):
crypto: ccp - Add the SNP_VERIFY_MITIGATION command

 Documentation/virt/coco/sev-guest.rst | 13 +++++++
 drivers/crypto/ccp/sev-dev.c          | 55 +++++++++++++++++++++++++++
 include/linux/psp-sev.h               | 30 +++++++++++++++
 include/uapi/linux/psp-sev.h          | 34 +++++++++++++++++
 4 files changed, 132 insertions(+)

base-commit: cf931c83bfc9a33f0b0a91f6fb63a685ffeeb011

Signature · 1 line
2.49.0