Commit 05f4ee0
committed
x86/sev: Register tpm-svsm platform device
JIRA: https://issues.redhat.com/browse/RHEL-87276
Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
commit e396dd8
Author: Stefano Garzarella <sgarzare@redhat.com>
Date: Thu Apr 10 15:51:16 2025 +0200
x86/sev: Register tpm-svsm platform device
SNP platform can provide a vTPM device emulated by SVSM.
The "tpm-svsm" device can be handled by the platform driver registered by the
x86/sev core code.
Register the platform device only when SVSM is available and it supports vTPM
commands as checked by snp_svsm_vtpm_probe().
[ bp: Massage commit message. ]
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20250410135118.133240-5-sgarzare@redhat.com
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>1 parent 9d4d606 commit 05f4ee0
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2699 | 2699 | | |
2700 | 2700 | | |
2701 | 2701 | | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
2702 | 2707 | | |
2703 | 2708 | | |
2704 | 2709 | | |
| |||
2718 | 2723 | | |
2719 | 2724 | | |
2720 | 2725 | | |
2721 | | - | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
2722 | 2731 | | |
2723 | 2732 | | |
2724 | 2733 | | |
| |||
0 commit comments