mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 23:08:20 +00:00
SysFSTools: implement IOMMU check
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4ca3851c6c
commit
a923104f23
@ -33,12 +33,8 @@ sub lspci {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub check_iommu_support{
|
sub check_iommu_support{
|
||||||
#fixme : need to check IOMMU support
|
# iommu support if there is anything in /sys/class/iommu besides . or ..
|
||||||
#http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM
|
return PVE::Tools::dir_glob_regex('/sys/class/iommu/', "[^\.].*");
|
||||||
|
|
||||||
my $iommu=1;
|
|
||||||
return $iommu;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub file_write {
|
sub file_write {
|
||||||
|
Loading…
Reference in New Issue
Block a user