From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 6021BA0096 for ; Fri, 10 May 2019 08:26:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1C69D2B95; Fri, 10 May 2019 08:26:03 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id F2DCB29D2 for ; Fri, 10 May 2019 08:26:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 May 2019 23:25:59 -0700 X-ExtLoop1: 1 Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 09 May 2019 23:25:59 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 9 May 2019 23:25:59 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 9 May 2019 23:25:59 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.70]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.129]) with mapi id 14.03.0415.000; Fri, 10 May 2019 14:25:57 +0800 From: "Li, WenjieX A" To: "Li, WenjieX A" , "Zhao, XinfengX" , "dts@dpdk.org" CC: "Zhao, XinfengX" Thread-Topic: [dts] [PATCH V2] test_plan: add the test plan for cryptodev virtio unit test Thread-Index: AQHVBvJNga710m7RF0iMM+VIAusUJqZj3SnAgAAFo/A= Date: Fri, 10 May 2019 06:25:56 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B536E31DD@SHSMSX103.ccr.corp.intel.com> References: <1557436573-9230-1-git-send-email-xinfengx.zhao@intel.com> <8688172CD5C0B74590FAE19D9579F94B536E31BD@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <8688172CD5C0B74590FAE19D9579F94B536E31BD@SHSMSX103.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2] test_plan: add the test plan for cryptodev virtio unit test 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" System Message: WARNING/2 (, line 33) Title overline too short. System Message: ERROR/3 (, line 56) Unexpected indentation. System Message: WARNING/2 (, line 57) Block quote ends without a blank line; unexpected unindent. System Message: ERROR/3 (, line 72) Unexpected indentation. System Message: WARNING/2 (, line 85) Definition list ends without a blank line; unexpected unindent. System Message: ERROR/3 (, line 105) Unexpected indentation. Please ignore my last mail about VM-HOST topo. BR, Wenjie > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Li, WenjieX A > Sent: Friday, May 10, 2019 2:16 PM > To: Zhao, XinfengX ; dts@dpdk.org > Cc: Zhao, XinfengX > Subject: Re: [dts] [PATCH V2] test_plan: add the test plan for cryptodev = virtio > unit test >=20 > Hi Xinfeng, >=20 > + +--------------+ > + | +--------+ | > + | | VM | | > + | +--------+ | > + | | > + | HOST | > + +--------------+ >=20 > Maybe you can use below form to avoid errors when execute "make html". >=20 > :: >=20 > +--------------+ > | +--------+ | > | | VM | | > | +--------+ | > | | > | HOST | > +--------------+ >=20 >=20 > BR, > Wenjie >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xinfeng Zhao > > Sent: Friday, May 10, 2019 5:16 AM > > To: dts@dpdk.org > > Cc: Zhao, XinfengX > > Subject: [dts] [PATCH V2] test_plan: add the test plan for cryptodev > > virtio unit test > > > > Signed-off-by: Xinfeng Zhao > > --- > > .../virtio_unit_cryptodev_func_test_plan.rst | 114 > +++++++++++++++++++++ > > 1 file changed, 114 insertions(+) > > create mode 100644 > > test_plans/virtio_unit_cryptodev_func_test_plan.rst > > > > diff --git a/test_plans/virtio_unit_cryptodev_func_test_plan.rst > > b/test_plans/virtio_unit_cryptodev_func_test_plan.rst > > new file mode 100644 > > index 0000000..d603293 > > --- /dev/null > > +++ b/test_plans/virtio_unit_cryptodev_func_test_plan.rst > > @@ -0,0 +1,114 @@ > > +.. Copyright (c) 2018-2019 Intel Corporation > > + All rights reserved. > > + > > + Redistribution and use in source and binary forms, with or without > > + modification, are permitted provided that the following conditions > > + are met: > > + > > + - Redistributions of source code must retain the above copyright > > + notice, this list of conditions and the following disclaimer. > > + > > + - Redistributions in binary form must reproduce the above copyright > > + notice, this list of conditions and the following disclaimer in > > + the documentation and/or other materials provided with the > > + distribution. > > + > > + - Neither the name of Intel Corporation nor the names of its > > + contributors may be used to endorse or promote products derived > > + from this software without specific prior written permission. > > + > > + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND > > CONTRIBUTORS > > + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > > + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND > FITNESS > > + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > > + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, > > INDIRECT, > > + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES > > + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE > GOODS > > OR > > + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > > + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > > CONTRACT, > > + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > > + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF > ADVISED > > + OF THE POSSIBILITY OF SUCH DAMAGE. > > + > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > +CryptoDev virtio unit Tests > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +Description > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +This document provides the plan for testing Cryptodev virtio API via > > +Cryptodev > > unit tests. > > +Unit tests include supported Hardware and Software PMD(polling mode > > +device) > > and supported algorithms. > > + > > +This test suite will run all cryptodev virtio related unit test cases. > > +Alternatively, you could execute the unit tests manually by app/test > > +DPDK > > application. > > + > > +Unit Test List > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +- cryptodev_virtio_autotest > > + > > +Prerequisites > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +qemu version >=3D 2.12 > > +in qemu enable vhost-user-crypto: > > + ./configure --target-list=3Dx86_64-softmmu --enable-vhost-crypto > > +--prefix=3D/root/qemu-2.12 && make && make install the bin is in > > +/root/qemu-2.12 folder, which is your specified > > + > > +Test Case Setup > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + +--------------+ > > + | +--------+ | > > + | | VM | | > > + | +--------+ | > > + | | > > + | HOST | > > + +--------------+ > > + > > +In Host: > > +# Build DPDK and vhost_crypto app > > + enable CONFIG_RTE_LIBRTE_VHOST in config/common_base > > + make install -j T=3Dx86_64-native-linuxapp-gcc > > + make -C examples/vhost_crypto > > + > > +# Run the dpdk vhost sample > > + ./examples/vhost_crypto/build/vhost-crypto --file- > prefix=3D"vhost_crypto_1" > > + [EAL options] > > + [Cryptodev PMD] > > + -- --cdev-queue-id 0 > > + --socket-file THE PATH OF SOCKET FILE > > + > > +# bind vfio-pci > > + usertools/dpdk-devbind.py --bind=3Dvfio-pci 0000:60:00.0 > > +0000:60:00.1 > > + > > +# 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 > > + -cpu host -smp 4 > > + -m 5120 -object memory-backend-file,id=3Dmem,size=3D5120M,me= m- > > path=3D/mnt/huge,share=3Don -numa node,memdev=3Dmem -mem-prealloc > > + -net > > + nic,vlan=3D0,macaddr=3D00:00:00:18:38:11,model=3De1000,addr=3D1f -net > > user,vlan=3D0,hostfwd=3Dtcp:10.67.111.126:6000-:22 > > + -device virtio-serial > > + -device > virtserialport,chardev=3Dvm0_qga0,name=3Dorg.qemu.guest_agent.0 > > + -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait > > + -vnc :1 > > + -chardev socket,path=3D/tmp/vm0_crypto0.sock,id=3Dvm0_crypto= 0 > > + -object > > cryptodev-vhost-user,id=3Dcryptodev0,chardev=3Dvm0_crypto0 -device virt= io- > > crypto-pci,id=3Dcrypto0,cryptodev=3Dcryptodev0 > > + -chardev socket,path=3D/tmp/vm0_crypto1.sock,id=3Dvm0_crypto= 1 > > + -object > > cryptodev-vhost-user,id=3Dcryptodev1,chardev=3Dvm0_crypto1 -device virt= io- > > crypto-pci,id=3Dcrypto1,cryptodev=3Dcryptodev1 > > + -drive file=3D/root/VMs/virtio_crypto_test_710_1.img > > + -device vfio-pci,host=3D0000:60:00.0,id=3Dpt_0 > > + -device vfio-pci,host=3D0000:60:00.1,id=3Dpt_1 > > + > > +In VM > > +# 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: > > + ./app/test -c 1 -n 1 > > + RTE>> cryptodev_virtio_autotest > > + > > +Expected all tests could pass in testing. > > -- > > 2.7.4