[PATCH] virt-host-validate: Detect SMMU support on ARMs

Ján Tomko jtomko at redhat.com
Fri Mar 24 12:45:53 UTC 2023


On a Wednesday in 2023, Michal Privoznik wrote:
>In vir-host-validate we do two checks related to IOMMU:
>
>  1) hardware support, and
>  2) kernel support.
>
>While users are usually interested in the latter, the former also
>makes sense. And for the former (hardware support) we have this
>huge if-else block for nearly every architecture, except ARM.
>
>Now, IOMMU is called SMMU in ARM world, and while there's
>certainly a definitive way of detecting SMMU support (e.g. via
>dumping some registers in asm), we can work around this - just
>like we do for Intel and AMD - and check for an ACPI table
>presence.
>
>In ARM world, there's I/O Remapping Table (IORT) which describes
>SMMU capabilities on given host and is exposed in sysfs
>(regardless of arm_smmu module).
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2178885
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> tools/virt-host-validate-common.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230324/3c6b7bed/attachment.sig>


More information about the libvir-list mailing list