From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C96C6C433EF for ; Thu, 7 Jul 2022 03:00:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234864AbiGGDAG (ORCPT ); Wed, 6 Jul 2022 23:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbiGGDAD (ORCPT ); Wed, 6 Jul 2022 23:00:03 -0400 Received: from smtp236.sjtu.edu.cn (smtp236.sjtu.edu.cn [202.120.2.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEDAE2F3BF for ; Wed, 6 Jul 2022 20:00:02 -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 3FBB71008B38F; Thu, 7 Jul 2022 10:44:20 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id 16CB6200C91EC; Thu, 7 Jul 2022 10:44:20 +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 t861SywAjMia; Thu, 7 Jul 2022 10:44:20 +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 1B47E200A5BFF; Thu, 7 Jul 2022 10:44:10 +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 v2 0/4] virtio/virtio_test Date: Thu, 7 Jul 2022 10:44:05 +0800 Message-Id: <20220707024409.1869-1-qtxuning1999@sjtu.edu.cn> X-Mailer: git-send-email 2.17.1 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: move magic number in code as defined constant virtio_test: use random length scatterlists to test descriptor chain virtio_test: enable indirection feature tools/virtio/virtio_test.c | 86 ++++++++++++++++++++++++++++---------- 1 file changed, 64 insertions(+), 22 deletions(-) -- 2.17.1