summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>2026-11-05 16:32:16 +0000
committerJoerg Roedel <joerg.roedel@amd.com>2026-11-06 13:22:43 +0100
commitec91bb159dc24eefe144ef8867937f4a055dd0e2 (patch)
tree00787bab9a3345387259654cdbf6fa0645cc3dfb /tools
parentb32ecac779bba6e7ac7caeae8c40db4280941634 (diff)
iommu/amd: Clear amd_iommu_snp_en if snp_rmptable_init() fails
iommu_snp_enable() checks that the IOMMU can support SNP and sets amd_iommu_snp_en, then calls snp_rmptable_init() to map the RMP table. If that call fails, CC_ATTR_HOST_SEV_SNP is cleared but amd_iommu_snp_en is left set. Later IOMMU initialization uses amd_iommu_snp_en to configure the IOMMU for SNP, on the assumption that RMP setup succeeded. Clear amd_iommu_snp_en along with CC_ATTR_HOST_SEV_SNP. Fixes: 409f45387c93 ("x86/sev: Fix broken SNP support with KVM module built-in") Signed-off-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com> Reviewed-by: Ankit Soni <Ankit.Soni@amd.com> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions