iommu/amd: Detect pre enabled translation
Add functions to check whether translation is already enabled in IOMMU. Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Этот коммит содержится в:

коммит произвёл
Joerg Roedel

родитель
ef954844c7
Коммит
4c232a708b
@@ -87,4 +87,5 @@ static inline bool iommu_feature(struct amd_iommu *iommu, u64 f)
|
||||
return !!(iommu->features & f);
|
||||
}
|
||||
|
||||
extern bool translation_pre_enabled(struct amd_iommu *iommu);
|
||||
#endif /* _ASM_X86_AMD_IOMMU_PROTO_H */
|
||||
|
Ссылка в новой задаче
Block a user