From nobody Mon May 13 23:30:14 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1618238186; cv=none; d=zohomail.com; s=zohoarc; b=OnWQCQ3IQpncXbzt5xY6kR1ZEivtGGIKYukxs8D/CL5PZFLTF+sx9hqnOSz/J7kqpccVjbEd/MK7KZR7Oyza0EXNKVWnRfrqoKgXGchNOVk22QzSh34zDVLtrnZBiM9GGn5Z5ZUPGnjSwzFaEwna2dPLNIDNZzEsfEetbK55G9w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618238186; 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; bh=fL35kfUtJ0fm9TNmvvTQ9YaZ2VuWHcNbHajP0cJpT74=; b=XaF44GNuQ55M01fogYAK4xba3hw6dcFyX8MoeTJVwbrLa7yyvNj9zkfUazZL1KKrEgZEW58jo6jok3GbvZ/XkdRVnWOT1VOTmdxsOiLn66LO6tpXqGDgX1cneGq2d2B+ZQz9hPYHYpjtnir5vrEOMCVCfrr04lPRh5IazSOBUME= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1618238186378253.84227444429257; Mon, 12 Apr 2021 07:36:26 -0700 (PDT) Received: from localhost ([::1]:35130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVxfr-0006IM-Im for importer@patchew.org; Mon, 12 Apr 2021 10:36:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVxeW-0005NY-5P for qemu-devel@nongnu.org; Mon, 12 Apr 2021 10:35:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:28546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVxeR-0007sn-Ki for qemu-devel@nongnu.org; Mon, 12 Apr 2021 10:34:58 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-362-iTUYNAlBMwyl4FZYhg48Lg-1; Mon, 12 Apr 2021 10:34:51 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 90AF48030A1 for ; Mon, 12 Apr 2021 14:34:50 +0000 (UTC) Received: from localhost (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id C33D95D9F0; Mon, 12 Apr 2021 14:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618238093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fL35kfUtJ0fm9TNmvvTQ9YaZ2VuWHcNbHajP0cJpT74=; b=DDi+10mmvoIeXddjgv3NoLNVUkKtFPaDUSxmCknBQAV9l3eR1zROCNeXZ0q0ocB4XcfwbR lIOPfMT+Q82Eiqf3abKyxzXvmasPkNavFjYEd3O7bHUV2c1fiTswg1ihs6+cPOby/mSEuL clMRy6evRRBCFh32PIQQLR1GpEn5xxA= X-MC-Unique: iTUYNAlBMwyl4FZYhg48Lg-1 From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PATCH v2 1/2] libqos/qgraph: fix "UNAVAILBLE" typo Date: Mon, 12 Apr 2021 15:34:36 +0100 Message-Id: <20210412143437.727560-2-stefanha@redhat.com> In-Reply-To: <20210412143437.727560-1-stefanha@redhat.com> References: <20210412143437.727560-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=stefanha@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=stefanha@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Emanuele Giuseppe Esposito , Thomas Huth , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Cc: Emanuele Giuseppe Esposito Cc: Paolo Bonzini Signed-off-by: Stefan Hajnoczi Reviewed-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Paolo Bonzini --- tests/qtest/libqos/qgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/libqos/qgraph.c b/tests/qtest/libqos/qgraph.c index b3b1a31f81..d1dc491930 100644 --- a/tests/qtest/libqos/qgraph.c +++ b/tests/qtest/libqos/qgraph.c @@ -844,7 +844,7 @@ void qos_dump_graph(void) } qos_printf_literal("type=3D%d cmd_line=3D'%s' [%s]\n", node->type, node->command_line, - node->available ? "available" : "UNAVAILBLE" + node->available ? "available" : "UNAVAILABLE" ); } g_list_free(keys); --=20 2.30.2 From nobody Mon May 13 23:30:14 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1618238318; cv=none; d=zohomail.com; s=zohoarc; b=TX3y/EBBxlEfFffz86qZDTPm04x+fLoR/eJjFmiiEsEJqfVWTkL3sUw9dvT2PWQwCNOPhAlwKX73tBtBZEnNc6X60uZxgDEO8/BdXZXOG7JFrcNtCEnNwOsyPOOaH+QG9U7kGFawfkgDBHParjDoypG+0g30H5ENYxnytunnqmg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618238318; 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; bh=93+ZsdMSqCZG5DETBxUYM5xc0TFQgk6H2ATtGs6dxfo=; b=Yrc4MbAhAb3Z8LdDDf7U893pH5Q8u6OgxPkXGnuFrix9b0OGBFlYkEpsHBV+1lfzkW1Hs6X+AlW6CbuUwFJc7sEJsMuZHw5A1hEjjOoiHPGAbJ5GCrV22ON7P0whP2C8Ks0Evu0iUm0l2YAX6I3+5UHW4bb+fobLunLr3fLV/H8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1618238318277182.20388589937238; Mon, 12 Apr 2021 07:38:38 -0700 (PDT) Received: from localhost ([::1]:40462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVxi0-00005k-Om for importer@patchew.org; Mon, 12 Apr 2021 10:38:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVxeY-0005Pq-0u for qemu-devel@nongnu.org; Mon, 12 Apr 2021 10:35:02 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVxeU-0007ux-Ja for qemu-devel@nongnu.org; Mon, 12 Apr 2021 10:35:01 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-46-zWNQgjjMOG-mAllD0fww3g-1; Mon, 12 Apr 2021 10:34:56 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 99B23189C440 for ; Mon, 12 Apr 2021 14:34:55 +0000 (UTC) Received: from localhost (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id D9A9860BD8; Mon, 12 Apr 2021 14:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618238098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=93+ZsdMSqCZG5DETBxUYM5xc0TFQgk6H2ATtGs6dxfo=; b=R78RGxo0EQv5NQ9uekdF8evqEZspR5x2FO2FqpL04988NQj5rzQ1nLAZ3HEPj/dIrrUkPe 3VvMqVSSJQAfjeuJrr6qhwqgab1r+ekYeFEwdikF4AdSqPNH4aJpawZYxBAvXoG+jdRjNe dF2/d51rKd6jezRd/rJFCFpDYwcFGg0= X-MC-Unique: zWNQgjjMOG-mAllD0fww3g-1 From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PATCH v2 2/2] docs/devel/qgraph: add troubleshooting information Date: Mon, 12 Apr 2021 15:34:37 +0100 Message-Id: <20210412143437.727560-3-stefanha@redhat.com> In-Reply-To: <20210412143437.727560-1-stefanha@redhat.com> References: <20210412143437.727560-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=stefanha@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=stefanha@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MIME_BASE64_TEXT=1.741, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , Thomas Huth , Emanuele Giuseppe Esposito , Stefan Hajnoczi Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" It can be tricky to troubleshoot qos-test when a test won't execute. Add an explanation of how to trace qgraph node connectivity and find which node has the problem. Cc: Emanuele Giuseppe Esposito Cc: Paolo Bonzini Signed-off-by: Stefan Hajnoczi Acked-by: Paolo Bonzini --- docs/devel/qgraph.rst | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/docs/devel/qgraph.rst b/docs/devel/qgraph.rst index a9aff167ad..318534d4b0 100644 --- a/docs/devel/qgraph.rst +++ b/docs/devel/qgraph.rst @@ -92,6 +92,64 @@ The basic framework steps are the following: Depending on the QEMU binary used, only some drivers/machines will be available and only test that are reached by them will be executed. =20 +Troubleshooting unavailable tests +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +If there is no path from an available machine to a test then that test wil= l be +unavailable and won't execute. This can happen if a test or driver did not= set +up its qgraph node correctly. It can also happen if the necessary machine = type +or device is missing from the QEMU binary because it was compiled out or +otherwise. + +It is possible to troubleshoot unavailable tests by running:: + + $ QTEST_QEMU_BINARY=3Dbuild/qemu-system-x86_64 build/tests/qtest/qos-tes= t --verbose + # ALL QGRAPH EDGES: { + # src=3D'virtio-net' + # |-> dest=3D'virtio-net-tests/vhost-user/multiqueue' type=3D2 (nod= e=3D0x559142109e30) + # |-> dest=3D'virtio-net-tests/vhost-user/migrate' type=3D2 (node= =3D0x559142109d00) + # src=3D'virtio-net-pci' + # |-> dest=3D'virtio-net' type=3D1 (node=3D0x55914210d740) + # src=3D'pci-bus' + # |-> dest=3D'virtio-net-pci' type=3D2 (node=3D0x55914210d880) + # src=3D'pci-bus-pc' + # |-> dest=3D'pci-bus' type=3D1 (node=3D0x559142103f40) + # src=3D'i440FX-pcihost' + # |-> dest=3D'pci-bus-pc' type=3D0 (node=3D0x55914210ac70) + # src=3D'x86_64/pc' + # |-> dest=3D'i440FX-pcihost' type=3D0 (node=3D0x5591421117f0) + # src=3D'' + # |-> dest=3D'x86_64/pc' type=3D0 (node=3D0x559142111600) + # |-> dest=3D'arm/raspi2' type=3D0 (node=3D0x559142110740) + ... + # } + # ALL QGRAPH NODES: { + # name=3D'virtio-net-tests/announce-self' type=3D3 cmd_line=3D'(null)'= [available] + # name=3D'arm/raspi2' type=3D0 cmd_line=3D'-M raspi2 ' [UNAVAILABLE] + ... + # } + +The ``virtio-net-tests/announce-self`` test is listed as "available" in the +"ALL QGRAPH NODES" output. This means the test will execute. We can follow= the +qgraph path in the "ALL QGRAPH EDGES" output as follows: '' -> 'x86_64/pc'= -> +'i440FX-pcihost' -> 'pci-bus-pc' -> 'pci-bus' -> 'virtio-net-pci' -> +'virtio-net'. The root of the qgraph is '' and the depth first search begi= ns +there. + +The ``arm/raspi`` machine node is listed as "UNAVAILABLE". Although it is +reachable from the root via '' -> 'arm/raspi2' the node is unavailable bec= ause +the QEMU binary did not list it when queried by the framework. This is exp= ected +because we used the ``qemu-system-x86_64`` binary which does not support A= RM +machine types. + +If a test is unexpectedly listed as "UNAVAILABLE", first check that the "A= LL +QGRAPH EDGES" output reports edge connectivity from the root ('') to the t= est. +If there is no connectivity then the qgraph nodes were not set up correctl= y and +the driver or test code is incorrect. If there is connectivity, check the +availability of each node in the path in the "ALL QGRAPH NODES" output. The +first unavailable node in the path is the reason why the test is unavailab= le. +Typically this is because the QEMU binary lacks support for the necessary +machine type or device. + Creating a new driver and its interface """"""""""""""""""""""""""""""""""""""""" =20 --=20 2.30.2