Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1117201imw; Fri, 8 Jul 2022 19:36:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sXJ0rigt5QUMQQpkIgGrd1s2z3WFSX7PoUJLAsI0w7ln3BZHIjWfVAOq1WUu+hSU+gTh1g X-Received: by 2002:a17:907:2ccc:b0:72b:2f1:f157 with SMTP id hg12-20020a1709072ccc00b0072b02f1f157mr6774709ejc.265.1657334159889; Fri, 08 Jul 2022 19:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657334159; cv=none; d=google.com; s=arc-20160816; b=L8cqazmu+XW+1AUSLar4njPNIyiQHhb7mkAZeKRD8AYOun7jAzM3rTr7zM2e47p8Zn 52DvauFUeq3gBrL7tjQZ2+hKKvRZDhlwFrfQyyK39LBJoMXyHUttwywKdAAJiOcNyAlm /7ax0tcSmF5nJCX09DTdP/e2gb22ataXiFZo/Wd0oI5bO0Z+E49ibs8tywHDWTRjmIFL XwgoEbEA7Ec3s1Wvs0pSW8hlEXo4Wv+PjHT0SihQ1yQzI50mFmFVX57Bw94o0LUeD/Vp +ZZbnQsaS76WySKFtVARvQEZufwD6pLRbiE8aXI9C+w1HqwjGxdjKz7KIubWxEZO7LNa XZlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=w3kzAq/seIVwJ0QGL1d4PF58Bva+2pkY4NBl1QdXUFM=; b=glQhEb1aYywyJog7Xhi55xTKEd0+4vwbWa801wZa79MXOQYBo+0U4/rdkw+rcrntPF BR5dzjJ1tlBRfNmmzN+1H54G3jm0X/TAN4O1BZibHcIEL7kEbqTgRbiInQtS9DBCq858 WNhZWLJJ/AmcAJNp6Ye/jyvQu0ietXZMcR+NzhMYQgXEixS97M19nkSZU2ZV5yMTACm1 F7aCdrJc7RctLaxoGcnTqyGHp6e1NCTh4FDjx1ZpG5ICwkLQwAiKW+vebkw1B8yaBV/S B+2VZW/mye7MFpkEV3O3DHEsHbX6HSc4+ylqT3/59L5jzHvnpybMG0c/oPiqgzvErlQ/ SCbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020a17090626d300b007269a156f59si384978ejc.348.2022.07.08.19.35.34; Fri, 08 Jul 2022 19:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiGIC2C (ORCPT + 99 others); Fri, 8 Jul 2022 22:28:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiGIC2B (ORCPT ); Fri, 8 Jul 2022 22:28:01 -0400 Received: from smtp236.sjtu.edu.cn (smtp236.sjtu.edu.cn [202.120.2.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F21879EE8 for ; Fri, 8 Jul 2022 19:28:00 -0700 (PDT) Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp236.sjtu.edu.cn (Postfix) with ESMTPS id E682F1008B388; Sat, 9 Jul 2022 10:27:56 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id 3A5972009BEB0; Sat, 9 Jul 2022 10:27:55 +0800 (CST) X-Virus-Scanned: amavisd-new at Received: from proxy02.sjtu.edu.cn ([127.0.0.1]) by localhost (proxy02.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZHSYgIQx0MTq; Sat, 9 Jul 2022 10:27:54 +0800 (CST) Received: from localhost.localdomain (unknown [202.120.40.82]) (Authenticated sender: qtxuning1999@sjtu.edu.cn) by proxy02.sjtu.edu.cn (Postfix) with ESMTPSA id 0ADEF2009BEA0; Sat, 9 Jul 2022 10:27:45 +0800 (CST) From: Guo Zhi To: jasowang@redhat.com, mst@redhat.com Cc: eperezma@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, sgarzare@redhat.com, Guo Zhi Subject: [PATCH v3 0/4] virtio/virtio_test Date: Sat, 9 Jul 2022 10:27:41 +0800 Message-Id: <20220709022745.21020-1-qtxuning1999@sjtu.edu.cn> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Original virtio_test only use add one descriptor for each io event, thus code of descriptor chain and indirection have not been tested(one descriptor will not use indirect feature even indirect feature has been specified). In fact it would have not been possible for vhost_test to access to the indirect descriptor table, because it's impossible for virtio_ring.c to allocate it. This series using descriptor chain and enable indirection feature. And through gcov we find the code coverage has been improved(not high for virtio_ring.c because virtio_test only test split virtqueue): +------------+-------------+-------------+ | |virtio_test.c|virtio_ring.c| +------------+-------------+-------------+ | original | 72.32% | 24.71% | +------------+-------------+-------------+ | current | 75% | 28.05% | +------------+-------------+-------------+ Guo Zhi (4): virtio_test: kick vhost for a batch of descriptors virtio_test: use random length scatterlists to test descriptor chain virtio_test: enable indirection feature virtio_test: pregenerate random numbers tools/virtio/virtio_test.c | 85 ++++++++++++++++++++++++++++++-------- 1 file changed, 68 insertions(+), 17 deletions(-) -- 2.17.1