linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Support for SNP_VERIFY_MITIGATION command
@ 2025-06-30 20:23 Pratik R. Sampat
  2025-06-30 20:23 ` [PATCH 1/1] crypto: ccp - Add the " Pratik R. Sampat
  0 siblings, 1 reply; 8+ messages in thread
From: Pratik R. Sampat @ 2025-06-30 20:23 UTC (permalink / raw)
  To: linux-crypto
  Cc: linux-kernel, ashish.kalra, thomas.lendacky, john.allen, herbert,
	bp, michael.roth, aik, pbonzini, seanjc, prsampat

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/20250617094354.1357771-1-aik@amd.com/

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
-- 
2.49.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-07-24 16:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 20:23 [PATCH 0/1] Support for SNP_VERIFY_MITIGATION command Pratik R. Sampat
2025-06-30 20:23 ` [PATCH 1/1] crypto: ccp - Add the " Pratik R. Sampat
2025-07-08 13:57   ` Sean Christopherson
2025-07-09 15:14     ` Pratik R. Sampat
2025-07-10 22:45       ` Sean Christopherson
2025-07-16 18:25         ` Pratik R. Sampat
2025-07-18 15:33           ` Sean Christopherson
2025-07-24 16:23             ` Pratik R. Sampat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).