]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virpcimock: Create symlink in /sys/kernel/iommu_groups/N/devices dir
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Aug 2019 15:10:50 +0000 (17:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 17 Aug 2019 10:24:34 +0000 (12:24 +0200)
commit324b576c0c16e52d068debac8dea50bbb104f24a
treed38067848c07838b79dc729df24e49a0d655f6a6
parent6a966aac9decb35df6199d0084622ee241cfbc16
virpcimock: Create symlink in /sys/kernel/iommu_groups/N/devices dir

So far, we don't need to create anything under
/sys/kernel/iommu_groups/N/devices directory (which is symlinked
from /sys/bus/pci/devices/DDDD:BB:DD.F/iommu_group directory)
because virhostdevtest still tests the old KVM assignment and
thus has no notion of IOMMU groups. This will change in near
future though. And in order to discover devices belonging to the
same IOMMU group we need to do what kernel does - create symlinks
to devices.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/virpcimock.c