projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca3851
)
SysFSTools: implement IOMMU check
author
Dominik Csapak
<d.csapak@proxmox.com>
Fri, 16 Nov 2018 15:17:49 +0000
(16:17 +0100)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Mon, 19 Nov 2018 12:43:14 +0000
(13:43 +0100)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/SysFSTools.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/SysFSTools.pm
b/src/PVE/SysFSTools.pm
index 660f94bbeae3ee6176e7eac1cfbe975f72f0041f..e4bc328c568e6345525bd18151079c21c7ae0b64 100644
(file)
--- a/
src/PVE/SysFSTools.pm
+++ b/
src/PVE/SysFSTools.pm
@@
-33,12
+33,8
@@
sub lspci {
}
sub check_iommu_support{
- #fixme : need to check IOMMU support
- #http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM
-
- my $iommu=1;
- return $iommu;
-
+ # iommu support if there is anything in /sys/class/iommu besides . or ..
+ return PVE::Tools::dir_glob_regex('/sys/class/iommu/', "[^\.].*");
}
sub file_write {