]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-host-validate-common: Print warning on missing IOMMU
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jan 2016 10:42:59 +0000 (11:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 9 Jan 2016 17:44:44 +0000 (18:44 +0100)
No only coverity warns about this, but it kind of makes sense
too. We have a test whether host supports IOMMU. Some platforms
don't have it, I know. But in that case we should print a message
that it's unknown whether platform has it or not.

Before:
  (no output)

After:
  QEMU: Checking for device assignment IOMMU support                         : WARN (Unknown if this platform has IOMMU support)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virt-host-validate-common.c

index dd1c414f96531ded3692896cf125710b6250e925..8ebf73eb1f570a53e5c12ae073a435e29733fcd4 100644 (file)
@@ -367,9 +367,6 @@ int virHostValidateIOMMU(const char *hvname,
         isIntel = true;
     else if (virHostValidateHasCPUFlag("svm"))
         isAMD = true;
-    else
-        /* XXX PPC/ARM/etc support */
-        return 0;
 
     virHostMsgCheck(hvname, "%s", _("for device assignment IOMMU support"));