From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 813CB47D1 for ; Tue, 8 Nov 2016 15:58:34 +0100 (CET) Received: from lfbn-1-5996-232.w90-110.abo.wanadoo.fr ([90.110.195.232] helo=[192.168.1.13]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1c47uK-0005fQ-II; Tue, 08 Nov 2016 16:01:53 +0100 To: "Yao, Lei A" , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" References: <1469088510-7552-1-git-send-email-olivier.matz@6wind.com> <1476368171-18176-1-git-send-email-olivier.matz@6wind.com> <1476368171-18176-3-git-send-email-olivier.matz@6wind.com> <2DBBFF226F7CF64BAFCA79B681719D9537F234A7@shsmsx102.ccr.corp.intel.com> Cc: "Ananyev, Konstantin" , "Chandran, Sugesh" , "Richardson, Bruce" , "Tan, Jianfeng" , "Zhang, Helin" , "adrien.mazarguil@6wind.com" , "stephen@networkplumber.org" , "dprovan@bivio.net" , "Wang, Xiao W" , "maxime.coquelin@redhat.com" From: Olivier Matz Message-ID: Date: Tue, 8 Nov 2016 15:58:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: <2DBBFF226F7CF64BAFCA79B681719D9537F234A7@shsmsx102.ccr.corp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 02/12] net/virtio: setup and start cq in configure callback X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 14:58:34 -0000 Hi Lei, On 11/02/2016 02:38 AM, Yao, Lei A wrote: > Hi, Olivier > > During the validation work with v16.11-rc2, I find that this patch will cause VM crash if enable virtio bonding in VM. Could you have a check at your side? The following is steps at my side. Thanks a lot > > 1. bind PF port to igb_uio. > modprobe uio > insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko > ./tools/dpdk-devbind.py --bind=igb_uio 84:00.1 > > 2. start vhost switch. > ./examples/vhost/build/vhost-switch -c 0x1c0000 -n 4 --socket-mem 4096,4096 - -p 0x1 --mergeable 0 --vm2vm 0 --socket-file ./vhost-net > > 3. bootup one vm with four virtio net device > qemu-system-x86_64 \ > -name vm0 -enable-kvm -chardev socket,path=/tmp/vm0_qga0.sock,server,nowait,id=vm0_qga0 \ > -device virtio-serial -device virtserialport,chardev=vm0_qga0,name=org.qemu.guest_agent.0 \ > -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait \ > -net nic,vlan=0,macaddr=00:00:00:c7:56:64,addr=1f \ > net user,vlan=0,hostfwd=tcp:10.239.129.127:6107:22 \ > -chardev socket,id=char0,path=./vhost-net \ > -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \ > -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01 \ > -chardev socket,id=char1,path=./vhost-net \ > -netdev type=vhost-user,id=netdev1,chardev=char1,vhostforce \ > -device virtio-net-pci,netdev=netdev1,mac=52:54:00:00:00:02 \ > -chardev socket,id=char2,path=./vhost-net \ > -netdev type=vhost-user,id=netdev2,chardev=char2,vhostforce \ > -device virtio-net-pci,netdev=netdev2,mac=52:54:00:00:00:03 \ > -chardev socket,id=char3,path=./vhost-net \ > -netdev type=vhost-user,id=netdev3,chardev=char3,vhostforce \ > -device virtio-net-pci,netdev=netdev3,mac=52:54:00:00:00:04 \ > -cpu host -smp 8 -m 4096 \ > -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on \ > -numa node,memdev=mem -mem-prealloc -drive file=/home/osimg/ubuntu16.img -vnc :10 > > 4. on vm: > bind virtio net device to igb_uio > modprobe uio > insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko > tools/dpdk-devbind.py --bind=igb_uio 00:04.0 00:05.0 00:06.0 00:07.0 > 5. startup test_pmd app > ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x1f -n 4 - -i --txqflags=0xf00 --disable-hw-vlan-filter > 6. create one bonding device (port 4) > create bonded device 0 0 (the first 0: mode, the second: the socket number) > show bonding config 4 > 7. bind port 0, 1, 2 to port 4 > add bonding slave 0 4 > add bonding slave 1 4 > add bonding slave 2 4 > port start 4 > Result: just after port start 4(port 4 is bonded port), the vm shutdown immediately. Sorry for the late answer. I reproduced the issue on rc2, and I confirm that Yuanhan's patchset fixes it in rc3. Regards, Olivier