From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id EED981ADD3 for ; Mon, 11 Dec 2017 15:07:36 +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 fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2017 06:07:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,391,1508828400"; d="scan'208,217";a="15033793" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 11 Dec 2017 06:07:35 -0800 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Dec 2017 06:07:35 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Dec 2017 06:07:34 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.159]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Mon, 11 Dec 2017 22:07:33 +0800 From: "Chen, Junjie J" To: "users@dpdk.org" Thread-Topic: vhost-user dequeue-zero-copy only works on virtio-0.9/0.95 Thread-Index: AdNyh3/ikT4jWO3cRYyHLSShQYxx5g== Date: Mon, 11 Dec 2017 14:07:32 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzgwMGNlNTQtNzM0ZS00NGRiLTgxNTMtZTYzNTE1M2NhMWE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJScDBRRFNacndER1MrV1NTZmZFdmFsYUkzWkRPcXplZno2OVFvOG1XTHZZaVZtRDRyV3lmRURsb29GVHV0b2pFIn0= x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] vhost-user dequeue-zero-copy only works on virtio-0.9/0.95 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 14:07:37 -0000 Hi We met a strange issue when using dequeue-zero-copy feature in VM2VM perfor= mance test, dequeue-zero-copy feature ONLY works fine along with Qemu versi= on < 2.7. After some investigation, we found actually the feature works fin= e with virtio-0.9, with Qemu version >=3D 2.7, we can set -disable-legacy= =3Doff,disable-modern=3Don to make it work. Any idea on this? Thanks in ad= vanced. Following are commands I use. Testpmd: ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xe -n 4 --socket-mem 1024,1024= --vdev 'eth_vhost0,iface=3D/tmp/vhost-net,queues=3D1,dequeue-zero-copy=3D1= ' --vdev 'eth_vhost1,iface=3D/tmp/vhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- -i --nb-cores=3D1 Vm1: ./x86_64-softmmu/qemu-system-x86_64 -name vm0 -enable-kvm \ -chardev socket,path=3D/tmp/vm0_qga0.sock,server,nowait,id=3Dvm0_qga0 \ -device virtio-serial -device virtserialport,chardev=3Dvm0_qga0,name=3D= org.qemu.guest_agent.0 \ -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait \ -net nic,vlan=3D0,macaddr=3D00:00:00:ef:58:4f,addr=3D1f \ -net user,vlan=3D0,hostfwd=3Dtcp:10.67.111.120:6093-:22 \ -chardev socket,id=3Dchar0,path=3D/tmp/vhost-net \ -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ -device virtio-net-pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,disable= -legacy=3Don,disable-modern=3Doff \ -cpu host \ -smp 1 \ -m 2048 \ -object memory-backend-file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge_= 1GB,share=3Don \ -numa node,memdev=3Dmem \ -mem-prealloc \ -drive file=3D/root/vm-img/ubuntu.qcow2-1 \ -vnc :4 Vm2: ./x86_64-softmmu/qemu-system-x86_64 -name vm1 -enable-kvm \ -chardev socket,path=3D/tmp/vm1_qga0.sock,server,nowait,id=3Dvm1_qga0 \ -device virtio-serial -device virtserialport,chardev=3Dvm1_qga0,name=3D= org.qemu.guest_agent.0 \ -daemonize -monitor unix:/tmp/vm1_monitor.sock,server,nowait \ -net nic,vlan=3D0,macaddr=3D00:00:00:0b:81:d1,addr=3D1f \ -net user,vlan=3D0,hostfwd=3Dtcp:10.67.111.120:6133-:22 \ -chardev socket,id=3Dchar0,path=3D/tmp/vhost-net1 \ -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ -device virtio-net-pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,disable= -legacy=3Don,disable-modern=3Doff \ -cpu host \ -smp 1 \ -m 2048 \ -object memory-backend-file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge_= 1GB,share=3Don \ -numa node,memdev=3Dmem \ -mem-prealloc \ -drive file=3D/root/vm-img/ubuntu.qcow2-2 \ -vnc :5 Cheers JJ