]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-host-validate: Fix warning for IOMMU detection on PPC
authorNitesh Konkar <niteshkonkar.libvirt@gmail.com>
Thu, 17 Aug 2017 13:48:05 +0000 (19:18 +0530)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 24 Aug 2017 22:37:37 +0000 (18:37 -0400)
commit941ec9b6a7ab0ea463ce7dcd2daad858b58cd9ae
tree64f45727a810d7f5174dcf7bc28e15ab78399b2e
parent70f564d8f4e4ed738e453710f0354190ee8f07ef
virt-host-validate: Fix warning for IOMMU detection on PPC

Fix the warning generated on PPC by virt-host-validate for IOMMU.
In case of PPC, IOMMU in the host kernel either has it or it's not
compiled in. The /sys/kernel/iommu_groups check is good enough to
verify if it was compiled with the kernel or not.

Modify the error message when "if (sb.st_nlink <= 2)" to indicate
what the problem would be since there would be no @bootarg.

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
tools/virt-host-validate-common.c