From nobody Sun Feb 8 11:26:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1564078214; cv=none; d=zoho.com; s=zohoarc; b=QIzQUaLrT+9G4J6NERYfdy+SAHEUlf6XjhAyyPL4xR+bN2SMYXB+CakmQvDuE+1Vxv01Orv7V5bt+/RSkwzF1Hm80kWk4mZ3fIzBu0aEW2ey9KVOEXYINeWqywrZ78qpxCF+VMmRLqc58YvDJQwhKE66yoIs/NQlCA3skpZjQfQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564078214; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=t62W6wc9UxXGceSaLFFHEq69gznxULrv3po6KGU/O3Q=; b=mT5SLZgC0R4giFj+LR8udcD1ssVfSkfokm6dCgD1Yvl7Kp4pZZSf4jESoHCVLaQ6rDfgBEDU8dGMgJzMJDe7qK6K1BXG/Tutn/xAfOdA4OlDlVyD+rlCC+S9fyNFa5EvhBOz0HsTkTdJnBhutp+RXOeOUZThkUZwZv1wWzA8pC4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1564078214180646.8932225599733; Thu, 25 Jul 2019 11:10:14 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81A1181DE0; Thu, 25 Jul 2019 18:10:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2A2B11001DE4; Thu, 25 Jul 2019 18:10:11 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DA4841800206; Thu, 25 Jul 2019 18:10:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x6PIA6u0031533 for ; Thu, 25 Jul 2019 14:10:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id E693460C61; Thu, 25 Jul 2019 18:10:06 +0000 (UTC) Received: from mx1.redhat.com (ext-mx19.extmail.prod.ext.phx2.redhat.com [10.5.110.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E015860C18 for ; Thu, 25 Jul 2019 18:10:04 +0000 (UTC) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 894D1307D84D for ; Thu, 25 Jul 2019 18:10:03 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id w17so5673227qto.10 for ; Thu, 25 Jul 2019 11:10:03 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c6:30ed:e8ca:caf:6199:5dc7]) by smtp.gmail.com with ESMTPSA id e8sm21639968qkn.95.2019.07.25.11.10.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 11:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q5yoHCKPWnkyIgwUIgXhd3zmpNm8wQlIqefs1VQgFYQ=; b=LPlvLryoxPQT1rTbIbY2GoUqLmjVfyfYQV7gUlHF3QHtVfbde1KJGTTOk4RcnweInZ SyESNQbUo2lHFaO8pNJI1A56TKsMwAux+rgpPnzDXhZMqGTlTCCTLGYFvJznPCSOY3SJ S4EqdEL8y+H29CKpI4WYmXS2lFWIfO8IVt3WnZ4tyXdcJitf93G1msiBpbYGuVVssgU+ qydt5UPvhXGnHbEf+BJWuCjFepdNfaRnt2yGDeXBfs9xza3tRDtQJre7nD5U7+hU5fZ/ dQvbRdQfIyTWy1QTQNkvyzMmbIKkUAPNh1IT0cobgdYagfPossRmFmBqGjY7yhY+7cSl jqCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q5yoHCKPWnkyIgwUIgXhd3zmpNm8wQlIqefs1VQgFYQ=; b=ZgoJDD/kHHZfG3zI4AjQH1EokPtLytMbmNHKKVgDMbmts05XJZRykaYc9lXlM9MmUg 7CduIOKCm2tcNnrvNMD7v7XCC8u3InlLiqkv4SMyCxPAG36q4XyUC+JhdPgQ88KrAaTw 6w0CTFtAAAOq3QxOy3GH8dB3Ci6TWPrD8d1xCC/M2MptPMK9/uziEw2yuV9cLphGr3e4 TMbhbmhiCEflv3EU5tbTvQvaGtTqAtFT6SZR826rph6+dv3e1fsWQddx3jPHYE/xT+34 MPerh3rBft1/j5HaCOXaXDeo08viAd+VxmYRKXBhCoGqosYubiW3C6dm7s8TGQFeg4xS T8OQ== X-Gm-Message-State: APjAAAVjQ4m6Kjo8SuBgvcEq208FMFrFfh0sd2fQsXQZCNSa2vSMICTc CKSfehZ7vKnTBbCnHVVyB+qg65zS X-Google-Smtp-Source: APXvYqxxC0V/M/VgWxuTDAx+xh3T+OldpD2UGRiLa66P/WjrsIrf92TeMo9GXLS+bxxFp5rLg75NXg== X-Received: by 2002:ac8:5315:: with SMTP id t21mr63201716qtn.229.1564078202721; Thu, 25 Jul 2019 11:10:02 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Thu, 25 Jul 2019 15:09:45 -0300 Message-Id: <20190725180951.8926-2-danielhb413@gmail.com> In-Reply-To: <20190725180951.8926-1-danielhb413@gmail.com> References: <20190725180951.8926-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 25 Jul 2019 18:10:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 25 Jul 2019 18:10:03 +0000 (UTC) for IP:'209.85.160.194' DOMAIN:'mail-qt1-f194.google.com' HELO:'mail-qt1-f194.google.com' FROM:'danielhb413@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.153 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS) 209.85.160.194 mail-qt1-f194.google.com 209.85.160.194 mail-qt1-f194.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.48 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza Subject: [libvirt] [PATCH v2 1/7] tests: Fix the iommu group path in mock pci X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 25 Jul 2019 18:10:13 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Shivaprasad G Bhat 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 Signed-off-by: Daniel Henrique Barboza --- tests/virpcimock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index beb5e1490d..5ec9abe05f 100644 --- a/tests/virpcimock.c +++ b/tests/virpcimock.c @@ -399,7 +399,7 @@ pci_device_new_from_stub(const struct pciDevice *data) make_file(devpath, "class", tmp, -1); =20 if (snprintf(tmp, sizeof(tmp), - "%s/../../../kernel/iommu_groups/%d", + "%s/../../../../kernel/iommu_groups/%d", devpath, dev->iommuGroup) < 0) { ABORT("@tmp overflow"); } @@ -407,7 +407,7 @@ pci_device_new_from_stub(const struct pciDevice *data) ABORT("Unable to create %s", tmp); =20 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); --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list