]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virt-host-validate: check for IOMMU support
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 7 Oct 2015 16:46:18 +0000 (17:46 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 13 Oct 2015 09:54:09 +0000 (10:54 +0100)
commit9139b46a6be9d04e0b6cf882f6ab4d3a9efb4825
tree1f3335b4d14c0fdd6e823889ee11fd626fc83ac1
parent179d92c8481b2229edbfb233614328e08ab79dfc
virt-host-validate: check for IOMMU support

This looks for existance of DMAR (Intel) and IVRS (AMD)
files under /sys/firmware/acpi/tables/, as a sign that
the platform has IOMMU present & enabled in the BIOS.

If these are present and /sys/kernel/iommu_groups does
not contain any entries this is taken as a sign that
the kernel has not enabled the IOMMU currently.

If no ACPI tables are found we can't distinguish between
disabled in BIOS and not present in the hardware, so we
have to give the user a generic hint.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/virt-host-validate-common.c
tools/virt-host-validate-common.h
tools/virt-host-validate-qemu.c