From patchwork Tue Aug 18 07:52:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, XinfengX" X-Patchwork-Id: 75608 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 39648A0351; Tue, 18 Aug 2020 09:52:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A8721C07B; Tue, 18 Aug 2020 09:52:49 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 2B7A31C05C for ; Tue, 18 Aug 2020 09:52:47 +0200 (CEST) IronPort-SDR: rly4DlcmpUXdoA3IX9n7PGK4fty/bfovhaHHT/yC+hakz1H5KM27uwkr29ntGZno136Jtp5JAw JpzT6qAETngg== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="216382913" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="216382913" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 00:52:46 -0700 IronPort-SDR: DFfPH608IfB+9CMXs/Xx6+Rw1atbw5pABCJPGdByeqjsAXZA7XvCWua7OdkkaHZmJ/jDWiJmNl DZmDW0/1hWKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="320002880" Received: from dpdk-xinfengx-tester.sh.intel.com ([10.67.116.161]) by fmsmga004.fm.intel.com with ESMTP; 18 Aug 2020 00:52:45 -0700 From: xinfeng zhao To: dts@dpdk.org Cc: xinfeng zhao Date: Tue, 18 Aug 2020 15:52:54 +0800 Message-Id: <20200818075255.19830-3-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200818075255.19830-1-xinfengx.zhao@intel.com> References: <20200818075255.19830-1-xinfengx.zhao@intel.com> Subject: [dts] [PATCH V1 3/4] conf: modify cryptodev virtio unit test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: xinfeng zhao --- .../virtio_unit_cryptodev_func_test_plan.rst | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/test_plans/virtio_unit_cryptodev_func_test_plan.rst b/test_plans/virtio_unit_cryptodev_func_test_plan.rst index 3615cb2..d08da69 100644 --- a/test_plans/virtio_unit_cryptodev_func_test_plan.rst +++ b/test_plans/virtio_unit_cryptodev_func_test_plan.rst @@ -51,10 +51,9 @@ Unit Test List Prerequisites ============= -qemu version >= 2.12 -in qemu enable vhost-user-crypto: +qemu version >= 2.12 and enable vhost-user-crypto:: -./configure --target-list=x86_64-softmmu --enable-vhost-crypto --prefix=/root/qemu-2.12 && make && make install + ./configure --target-list=x86_64-softmmu --enable-vhost-crypto --prefix=/root/qemu-2.12 && make && make install the bin is in /root/qemu-2.12 folder, which is your specified @@ -71,13 +70,13 @@ Test Case Setup In Host: -# Build DPDK and vhost_crypto app +# Enable config item in dpdk: enable CONFIG_RTE_LIBRTE_VHOST in config/common_base - make install -j T=x86_64-native-linuxapp-gcc - make -C examples/vhost_crypto -# Run the dpdk vhost sample +# Build DPDK and app vhost_crypto + +# Run the dpdk vhost sample:: ./examples/vhost_crypto/build/vhost-crypto --file-prefix="vhost_crypto_1" [EAL options] @@ -85,11 +84,11 @@ In Host: -- --cdev-queue-id 0 --socket-file THE PATH OF SOCKET FILE -# bind vfio-pci +# bind vf or pf with driver vfio-pci:: usertools/dpdk-devbind.py --bind=vfio-pci 0000:60:00.0 0000:60:00.1 -# Start VM by the qemu +# Start VM by the qemu:: taskset -c 11,12,13,14 /root/qemu-2.12/bin/qemu-system-x86_64 -name vm0 -enable-kvm -pidfile /tmp/.vm0.pid @@ -108,16 +107,14 @@ In Host: In VM: -# set virtio device +# set virtio device:: modprobe uio_pci_generic echo -n 0000:00:04.0 > /sys/bus/pci/drivers/virtio-pci/unbind echo -n 0000:00:05.0 > /sys/bus/pci/drivers/virtio-pci/unbind echo "1af4 1054" > /sys/bus/pci/drivers/uio_pci_generic/new_id -# Build the guest DPDK and app/test - -# Manually verify the app/test by this command, as example, in your build folder: +# Manually verify the app/test by this command, as example, in your build folder:: ./app/test -c 1 -n 1 RTE>> cryptodev_virtio_autotest