[RFC PATCH 01/28] tests: Fix the iommu group path in mock pci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The mocked path falls into /sys/bus/kernel/iommu_groups instead of
/sys/kernel/iommu_groups. Needed for adding some new test cases.

Signed-off-by: Shivaprasad G Bhat <sbhat@xxxxxxxxxxxxxxxxxx>
---
 tests/virpcimock.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/virpcimock.c b/tests/virpcimock.c
index 176c64d654..2a7e9216b2 100644
--- a/tests/virpcimock.c
+++ b/tests/virpcimock.c
@@ -404,7 +404,7 @@ pci_device_new_from_stub(const struct pciDevice *data)
     make_file(devpath, "class", tmp, -1);
 
     if (snprintf(tmp, sizeof(tmp),
-                 "%s/../../../kernel/iommu_groups/%d",
+                 "%s/../../../../kernel/iommu_groups/%d",
                  devpath, dev->iommuGroup) < 0) {
         ABORT("@tmp overflow");
     }
@@ -412,7 +412,7 @@ pci_device_new_from_stub(const struct pciDevice *data)
         ABORT("Unable to create %s", tmp);
 
     if (snprintf(tmp, sizeof(tmp),
-                 "../../../kernel/iommu_groups/%d", dev->iommuGroup) < 0) {
+                 "../../../../kernel/iommu_groups/%d", dev->iommuGroup) < 0) {
         ABORT("@tmp overflow");
     }
     make_symlink(devpath, "iommu_group", tmp);

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux