diff options
| author | Stefano Garzarella <[email protected]> | 2025-04-10 13:51:15 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2025-04-10 14:24:29 +0000 |
| commit | 93b7c6b3ce918c3d24de82dcff7a87b8bd631b2e (patch) | |
| tree | 29ba3af981dd829f3e866887f54a6ecad4b9fcfd /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | svsm: Add header with SVSM_VTPM_CMD helpers (diff) | |
| download | kernel-93b7c6b3ce918c3d24de82dcff7a87b8bd631b2e.tar.gz kernel-93b7c6b3ce918c3d24de82dcff7a87b8bd631b2e.zip | |
tpm: Add SNP SVSM vTPM driver
Add driver for the vTPM defined by the AMD SVSM spec [1].
The specification defines a protocol that a SEV-SNP guest OS can use to
discover and talk to a vTPM emulated by the Secure VM Service Module (SVSM) in
the guest context, but at a more privileged level (VMPL0).
The new tpm-svsm platform driver uses API exposed by the x86/sev core
implementation interface to a SVSM to send commands and receive responses.
The device cannot be hot-plugged/unplugged as it is emulated by the platform,
so module_platform_driver_probe() can be used. The device will be registered
by the platform only when it's available, so the probe function just needs to
setup the tpm_chip.
This device does not support interrupts and sends responses to commands
synchronously.
In order to have .recv() called just after .send() in tpm_try_transmit(), the
.status() callback is not implemented as recently supported by commit
980a573621ea ("tpm: Make chip->{status,cancel,req_canceled} opt").
[1] "Secure VM Service Module for SEV-SNP Guests"
Publication # 58019 Revision: 1.00
[ bp: Massage commit message. ]
Signed-off-by: Stefano Garzarella <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
