Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp253852imn; Wed, 3 Aug 2022 02:24:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QCmmTzi9kqybbgrhhJEnj1DbnEtNt4i52/MuH1pjhsaFvLdn0TGMmLQElNqKEVq1fas7e X-Received: by 2002:a62:4e54:0:b0:52d:3980:bd50 with SMTP id c81-20020a624e54000000b0052d3980bd50mr17104974pfb.60.1659518693640; Wed, 03 Aug 2022 02:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659518693; cv=none; d=google.com; s=arc-20160816; b=h7F5oEBhBHLiPrstOmQZbjIP99Jhbs/9xTAHKuwZg/nW8lCNHhFfsZwA2s574l5Mx5 84wx1132q2tW7sImLtOFwUbPpGYnQ0mf+OqBpw5M8Wkz59AgYgldiBmabjPgZbB5ws9/ u5EZ7yV2vDicnEHxfmbLNwxu/EFxsjn4nd8V6A/ScAmenXzUfs1fsv/JOgVkT7ytZ0Kw 8w5Rkqu5gnlgpkHr7v8vjwdcDWrmIw4NP7KAWmg1df0OAIoFHYsN5PwYBH0HrYdIpPyh zQJqZVSpB1czhbtp0BveH3YzA5qg8LRHoEwHxHpDZXZPzhtNuPYDHC6hZGtuokLoYcaT sS3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=pbt46p0mFOe7Lt/nHVDJmTpLAI3vZagzACUdZ39zcQI=; b=S2gzexEzvNGlopqtkF6DTJGMpn5sFFjKW4QwBURuEeXOuMZ6QcmoYRrMRB2+uGJpv9 LOZ4X1NcR8gmPJhkQB4SSZMF7q98MhRxdhd3rgvFiQ2Y/Ofmvx2fLPfXe2ADZVe+cDMW ES8XTNuHw3SL9C7TM2dXhvdZTNBNsbk0DqSjhqaTEfZyU+kVl4DfzTbvBbAm5RBL6DBX 8LrlAketl3T9XAmKi+DbX/RYs7FvcuHF/9lMhAJZ9cyyIxhG9QArGHAU2sabHpSB6pHA PQhRhrEd3PLTZSMKNWd+UW4XG3OXWAp1QCBR+e2Z56SRlCQxRxwJvo4T6iXv+PEyJiip p16g== 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 p2-20020a635b02000000b003fe34317ce2si17841637pgb.778.2022.08.03.02.24.38; Wed, 03 Aug 2022 02:24:53 -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 S233230AbiHCJBJ (ORCPT + 99 others); Wed, 3 Aug 2022 05:01:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiHCJBI (ORCPT ); Wed, 3 Aug 2022 05:01:08 -0400 Received: from smtp237.sjtu.edu.cn (smtp237.sjtu.edu.cn [202.120.2.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 651B4286D3 for ; Wed, 3 Aug 2022 02:01:04 -0700 (PDT) Received: from mta91.sjtu.edu.cn (unknown [10.118.0.91]) by smtp237.sjtu.edu.cn (Postfix) with ESMTPS id 3890B10087D61; Wed, 3 Aug 2022 17:01:00 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mta91.sjtu.edu.cn (Postfix) with ESMTP id EE83E37C93E; Wed, 3 Aug 2022 17:00:59 +0800 (CST) X-Virus-Scanned: amavisd-new at Received: from mta91.sjtu.edu.cn ([127.0.0.1]) by localhost (mta91.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ST7DrKPqboO2; Wed, 3 Aug 2022 17:00:59 +0800 (CST) Received: from mstore105.sjtu.edu.cn (mstore101.sjtu.edu.cn [10.118.0.105]) by mta91.sjtu.edu.cn (Postfix) with ESMTP id C4AC737C93D; Wed, 3 Aug 2022 17:00:59 +0800 (CST) Date: Wed, 3 Aug 2022 17:00:59 +0800 (CST) From: Guo Zhi To: jasowang , Michael Tsirkin Cc: eperezma , virtualization , linux-kernel , sgarzare Message-ID: <2082515061.4772968.1659517259455.JavaMail.zimbra@sjtu.edu.cn> In-Reply-To: <4185ee25-52af-8271-c4de-3824490fba6a@sjtu.edu.cn> References: <20220709022745.21020-1-qtxuning1999@sjtu.edu.cn> <4185ee25-52af-8271-c4de-3824490fba6a@sjtu.edu.cn> Subject: Re: [PATCH v3 0/4] virtio/virtio_test MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Originating-IP: [36.148.64.77] X-Mailer: Zimbra 8.8.15_GA_4308 (ZimbraWebClient - GC103 (Mac)/8.8.15_GA_3928) Thread-Topic: virtio/virtio_test Thread-Index: sTk/JzG5xzfYKxwClrIRzy7E2UoPqA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Message ----- > From: "Guo Zhi" > To: "jasowang" , "Michael Tsirkin" > Cc: "eperezma" , "virtualization" , "linux-kernel" > , "sgarzare" > Sent: Thursday, July 21, 2022 7:55:31 PM > Subject: Re: [PATCH v3 0/4] virtio/virtio_test > On 2022/7/9 10:27, Guo Zhi wrote: >> 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(-) >> > Hi, the new version patch of virtio_test is waiting for review:) > > Thanks. Friendly ping for the patches:) Thanks