mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 15:16:49 +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{
|
||||
#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 {
|
||||
|
Loading…
Reference in New Issue
Block a user