mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
tools: inform user which IOMMU was found during validation
Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
1 parent
c0f42f4d76
commit
f44e2ecc5b
1 file changed
+3
-3
@@ -260,7 +260,7 @@ int virHostValidateIOMMU(const char *hvname,
|
||||
|
||||
if (isIntel) {
|
||||
if (access("/sys/firmware/acpi/tables/DMAR", F_OK) == 0) {
|
||||
virValidatePass();
|
||||
virValidatePassDetails("DMAR");
|
||||
bootarg = "intel_iommu=on";
|
||||
} else {
|
||||
virValidateFail(level,
|
||||
@@ -271,7 +271,7 @@ int virHostValidateIOMMU(const char *hvname,
|
||||
}
|
||||
} else if (isAMD) {
|
||||
if (access("/sys/firmware/acpi/tables/IVRS", F_OK) == 0) {
|
||||
virValidatePass();
|
||||
virValidatePassDetails("IVRS");
|
||||
bootarg = "iommu=pt iommu=1";
|
||||
} else {
|
||||
virValidateFail(level,
|
||||
@@ -318,7 +318,7 @@ int virHostValidateIOMMU(const char *hvname,
|
||||
"No SMMU found");
|
||||
return VIR_VALIDATE_FAILURE(level);
|
||||
} else {
|
||||
virValidatePass();
|
||||
virValidatePassDetails("SMMU");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user