summaryrefslogtreecommitdiffstats
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>2022-06-14 10:18:42 -0500
committerSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>2022-07-13 17:27:24 -0500
commite69fdd9487d6e963713679e6253e19bb704762f7 (patch)
tree404518b797444d3426e5b716809f66d56e59efcd /include/linux/timerqueue.h
parent11585682dee921e2fa667490a8ce2931de6236a7 (diff)
downloadcachepc-linux-e69fdd9487d6e963713679e6253e19bb704762f7.tar.gz
cachepc-linux-e69fdd9487d6e963713679e6253e19bb704762f7.zip
iommu/amd: Do not support IOMMU_DOMAIN_IDENTITY after SNP is enabled
Once SNP is enabled (by executing SNP_INIT command), IOMMU can no longer support the passthrough domain (i.e. IOMMU_DOMAIN_IDENTITY). The SNP_INIT command is called early in the boot process, and would fail if the kernel is configure to default to passthrough mode. After the system is already booted, users can try to change IOMMU domain type of a particular IOMMU group. In this case, the IOMMU driver needs to check the SNP-enable status and return failure when requesting to change domain type to identity. Therefore, return failure when trying to allocate identity domain. Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions