From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 42F50A0567; Fri, 13 Mar 2020 07:37:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 39C4F1C00E; Fri, 13 Mar 2020 07:37:22 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D54812BE3 for ; Fri, 13 Mar 2020 07:37:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:37:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="322707058" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 12 Mar 2020 23:37:18 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:37:17 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:37:17 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.137]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:37:15 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: update qemu cmd to compatible with qemu 4.2.0 for vm2vm_virtio_net_perf_test_plan Thread-Index: AQHV9nW1mwo9d8CGiUm9Ag34YdBFqqhGFrYg Date: Fri, 13 Mar 2020 06:37:14 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC81E@SHSMSX101.ccr.corp.intel.com> References: <20200309174317.63445-1-yinan.wang@intel.com> In-Reply-To: <20200309174317.63445-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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 v1] test_plans: update qemu cmd to compatible with qemu 4.2.0 for vm2vm_virtio_net_perf_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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Tuesday, March 10, 2020 1:43 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: update qemu cmd to compatible with > qemu 4.2.0 for vm2vm_virtio_net_perf_test_plan >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > .../vm2vm_virtio_net_perf_test_plan.rst | 491 +++++++++++------- > 1 file changed, 290 insertions(+), 201 deletions(-) >=20 > diff --git a/test_plans/vm2vm_virtio_net_perf_test_plan.rst > b/test_plans/vm2vm_virtio_net_perf_test_plan.rst > index 2db0339..f86075b 100644 > --- a/test_plans/vm2vm_virtio_net_perf_test_plan.rst > +++ b/test_plans/vm2vm_virtio_net_perf_test_plan.rst > @@ -37,7 +37,11 @@ vm2vm vhost-user/virtio-net test plan > Description > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -This test plan test vhost tx offload (TSO and UFO) function by verifing = the > TSO/cksum in the TCP/IP stack enabled environment and UFO/cksum in the > UDP/IP stack enabled environment with vm2vm split ring and packed ring > vhost-user/virtio-net non-mergeable path. Also add case to check the > payload of large packet is valid with vm2vm split ring and packed ring vh= ost- > user/virtio-net mergeable and non-mergeable dequeue zero copy test. For > packed virtqueue test, need using qemu version > 4.2.0. > +This test plan test vhost tx offload (TSO and UFO) function by verifing = the > TSO/cksum in the TCP/IP > +stack enabled environment and UFO/cksum in the UDP/IP stack enabled > environment with vm2vm split ring > +and packed ring vhost-user/virtio-net mergeable path. Also add case to > check the payload of large packet > +is valid with vm2vm split ring and packed ring vhost-user/virtio-net > mergeable and non-mergeable dequeue > +zero copy test. For packed virtqueue virtio-net test, need qemu version = > > 4.2.0 and VM kernel version > v5.1. >=20 > Test flow > =3D=3D=3D=3D=3D=3D=3D=3D=3D > @@ -50,41 +54,48 @@ Test Case 1: VM2VM split ring vhost-user/virtio-net > test with tcp traffic > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -l 2-4 -n 4 --socket-mem 2048,2048 --legacy-mem --no-pci -= -file- > prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D1' --vdev > 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores=3D2 --txd=3D= 1024 -- > rxd=3D1024 > + ./testpmd -l 2-4 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores= =3D2 -- > txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don -vnc :10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don -vnc :12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > - ifconfig ens3 1.1.1.2 > + ifconfig ens5 1.1.1.2 > arp -s 1.1.1.8 52:54:00:00:00:02 >=20 > 4. On VM2, set virtio device IP and run arp protocal:: >=20 > - ifconfig ens3 1.1.1.8 > + ifconfig ens5 1.1.1.8 > arp -s 1.1.1.2 52:54:00:00:00:01 >=20 > 5. Check the iperf performance between two VMs by below commands:: >=20 > Under VM1, run: `iperf -s -i 1` > - Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 30` > + Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` >=20 > 6. Check both 2VMs can receive and send big packets to each other:: >=20 > @@ -92,7 +103,6 @@ Test Case 1: VM2VM split ring vhost-user/virtio-net > test with tcp traffic > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -7. Check iperf throughput can get expected data. >=20 > Test Case 2: VM2VM split ring vhost-user/virtio-net dequeue zero-copy te= st > with tcp traffic >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > @@ -100,26 +110,33 @@ Test Case 2: VM2VM split ring vhost-user/virtio- > net dequeue zero-copy test with > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -l 2-4 -n 4 --socket-mem 2048,2048 --legacy-mem --no-pci -= -file- > prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-z= ero- > copy=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero- > copy=3D1' -- -i --nb-cores=3D2 --txd=3D1024 --rxd=3D1024 > + ./testpmd -l 2-4 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i > --nb-cores=3D2 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don -vnc :10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don -vnc :12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -134,7 +151,7 @@ Test Case 2: VM2VM split ring vhost-user/virtio-net > dequeue zero-copy test with > 5. Check the iperf performance between two VMs by below commands:: >=20 > Under VM1, run: `iperf -s -i 1` > - Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 30` > + Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` >=20 > 6. Check both 2VMs can receive and send big packets to each other:: >=20 > @@ -142,32 +159,39 @@ Test Case 2: VM2VM split ring vhost-user/virtio- > net dequeue zero-copy test with > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -7. Check iperf throughput can get expected data. > - > Test Case 3: VM2VM split ring vhost-user/virtio-net test with udp traffi= c >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy= - > mem --no-pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i= --nb- > cores=3D1 --txd=3D1024 --rxd=3D1024 > + testpmd>./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost = --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores= =3D1 -- > txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :10 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -196,24 +220,33 @@ Test Case 4: Check split ring virtio-net device > capability > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy= - > mem --no-pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i= --nb- > cores=3D1 --txd=3D1024 --rxd=3D1024 > + testpmd>./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost = --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores= =3D2 -- > txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2,set TSO and UFO on in qemu command:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :10 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :12 >=20 > 3. Check UFO and TSO offload status on for the Virtio-net driver on VM1 = and > VM2:: >=20 > @@ -235,26 +268,33 @@ Test Case 5: VM2VM virtio-net split ring mergeable > zero copy test with large pac > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + ./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i > --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Don \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -276,26 +316,33 @@ Test Case 6: VM2VM virtio-net split ring non- > mergeable zero copy test with large > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + ./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i > --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,hos= t_ufo > =3Don -vnc :12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -314,44 +361,51 @@ Test Case 6: VM2VM virtio-net split ring non- > mergeable zero copy test with large > Test Case 7: VM2VM packed ring vhost-user/virtio-net test with tcp traff= ic >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -1. Launch the Vhost sample by below commands:: > +1. Launch the Vhost sample by below commands::,packed=3Don >=20 > rm -rf vhost-net* > - ./testpmd -l 2-4 -n 4 --socket-mem 2048,2048 --legacy-mem --no-pci -= -file- > prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D1' --vdev > 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores=3D2 --txd=3D= 1024 -- > rxd=3D1024 > + ./testpmd -l 2-4 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores= =3D2 -- > txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > - ifconfig ens3 1.1.1.2 > + ifconfig ens5 1.1.1.2 > arp -s 1.1.1.8 52:54:00:00:00:02 >=20 > 4. On VM2, set virtio device IP and run arp protocal:: >=20 > - ifconfig ens3 1.1.1.8 > + ifconfig ens5 1.1.1.8 > arp -s 1.1.1.2 52:54:00:00:00:01 >=20 > 5. Check the iperf performance between two VMs by below commands:: >=20 > Under VM1, run: `iperf -s -i 1` > - Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 30` > + Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` >=20 > 6. Check both 2VMs can receive and send big packets to each other:: >=20 > @@ -359,34 +413,39 @@ Test Case 7: VM2VM packed ring vhost-user/virtio- > net test with tcp traffic > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -7. Check iperf throughput can get expected data. > - > Test Case 8: VM2VM packed ring vhost-user/virtio-net dequeue zero-copy > test with tcp traffic >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -l 2-4 -n 4 --socket-mem 2048,2048 --legacy-mem --no-pci -= -file- > prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-z= ero- > copy=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero- > copy=3D1' -- -i --nb-cores=3D2 --txd=3D1024 --rxd=3D1024 > + ./testpmd -l 2-4 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i > --nb-cores=3D2 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -401,7 +460,7 @@ Test Case 8: VM2VM packed ring vhost-user/virtio- > net dequeue zero-copy test with > 5. Check the iperf performance between two VMs by below commands:: >=20 > Under VM1, run: `iperf -s -i 1` > - Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 30` > + Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` >=20 > 6. Check both 2VMs can receive and send big packets to each other:: >=20 > @@ -409,32 +468,39 @@ Test Case 8: VM2VM packed ring vhost-user/virtio- > net dequeue zero-copy test with > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -7. Check iperf throughput can get expected data. > - > Test Case 9: VM2VM packed ring vhost-user/virtio-net test with udp traff= ic >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy= - > mem --no-pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i= --nb- > cores=3D1 --txd=3D1024 --rxd=3D1024 > + testpmd>./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost = --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores= =3D2 -- > txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on,packed=3Don -vnc :10 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on,packed=3Don -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -463,24 +529,33 @@ Test Case 10: Check packed ring virtio-net device > capability > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy= - > mem --no-pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i= --nb- > cores=3D1 --txd=3D1024 --rxd=3D1024 > + testpmd>./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost = --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores= =3D2 -- > txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2,set TSO and UFO on in qemu command:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on,packed=3Don -vnc :10 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on,packed=3Don -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 >=20 > 3. Check UFO and TSO offload status on for the Virtio-net driver on VM1 = and > VM2:: >=20 > @@ -502,26 +577,33 @@ Test Case 11: VM2VM packed ring virtio-net > mergeable dequeue zero copy test with > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + ./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i > --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Don,packed=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Don,packed=3Don \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > @@ -543,26 +625,33 @@ Test Case 12: VM2VM packed ring virtio-net non- > mergeable dequeue zero copy test > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + ./testpmd -c 0xF0000000 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > + --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i > --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - qemu-system-x86_64 -name us-vhost-vm1 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,packed=3Don \ > - -vnc :12 -daemonize > - > - qemu-system-x86_64 -name us-vhost-vm2 \ > - -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > - -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,packed=3Don = \ > - -vnc :11 -daemonize > + qemu-system-x86_64 -name vm1 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > + > + qemu-system-x86_64 -name vm2 -enable-kvm -cpu host -smp 1 -m 4096 \ > + -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > + -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > + -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > + -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > + -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 >=20 > 3. On VM1, set virtio device IP and run arp protocal:: >=20 > -- > 2.17.1