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 ADE77A0471 for ; Mon, 12 Aug 2019 05:10:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BFE593798; Mon, 12 Aug 2019 05:10:18 +0200 (CEST) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id 54EB5326D for ; Mon, 12 Aug 2019 05:10:17 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 0E659A10D6; Mon, 12 Aug 2019 05:10:17 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 12 Aug 2019 03:10:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: vhost/virtio X-Bugzilla-Version: 19.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pezhang@redhat.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 337] Live migration with dpdk(in host)+vhost-user+dpdk(in guest) fails: Failed to load virtio-net:virtio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D337 Bug ID: 337 Summary: Live migration with dpdk(in host)+vhost-user+dpdk(in guest) fails: Failed to load virtio-net:virtio Product: DPDK Version: 19.08 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: pezhang@redhat.com Target Milestone: --- Live migration with dpdk(in host)+vhost-user+dpdk(in guest) fails when there are packets through VM. This is a regression bug: v19.08-rc2 is the first version hit this problem. commit 07efd6ddc0499688eb11ae4866d3532295d6db2b (tag: v19.05, origin/releas= es)=20 works well commit cc091931dc05212db32ddbd7da3031104ca4963f (tag: v19.08-rc1)=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 works well commit 83a124fb73c50b051ee20ef6b1998c81be7e65df (tag: v19.08-rc2)=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 fail commit 0710d87b7f5d0a2cd01861d44c4689efd4714b5f (tag: v19.08-rc4)=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 fail Steps: 1. Boot testpmd in src and des host, refer to [1] 2. Start VM in guest, refer to [2] 3. Start testpmd in guest and start MoonGen in another host, guest can rece= ive packets, refer to[3] 4. Migrate guest from src to des host, fail. # /bin/virsh migrate --verbose --persistent --live rhel8.0 qemu+ssh://192.168.1.2/system Migration: [100 %]error: internal error: qemu unexpectedly closed the monit= or: 2019-08-08T04:53:36.910570Z qemu-system-x86_64: -chardev socket,id=3Dcharnet1,path=3D/tmp/vhostuser0.sock,server: info: QEMU waiting= for connection on: disconnected:unix:/tmp/vhostuser0.sock,server 2019-08-08T04:53:37.158587Z qemu-system-x86_64: -chardev socket,id=3Dcharnet2,path=3D/tmp/vhostuser1.sock,server: info: QEMU waiting= for connection on: disconnected:unix:/tmp/vhostuser1.sock,server 2019-08-08T04:53:52.371518Z qemu-system-x86_64: VQ 0 size 0x400 < last_avail_idx 0x4d6b - used_idx 0x3ffa 2019-08-08T04:53:52.371633Z qemu-system-x86_64: Failed to load virtio-net:virtio 2019-08-08T04:53:52.371639Z qemu-system-x86_64: error while loading state f= or instance 0x0 of device '0000:00:06.0:00.0/virtio-net' 2019-08-08T04:53:52.373273Z qemu-system-x86_64: load of migration failed: Operation not permitted [1] # /home/dpdk-latest/x86_64-native-linuxapp-gcc/build/app/test-pmd/testpmd \ -l 2,4,6,8,10 \ --socket-mem 1024,1024 \ -n 4 \ -d /home/dpdk-latest/x86_64-native-linuxapp-gcc/lib/librte_pmd_vhost.so \ --vdev net_vhost0,iface=3D/tmp/vhostuser0.sock,queues=3D1,client=3D1,iommu-= support=3D1 \ --vdev net_vhost1,iface=3D/tmp/vhostuser1.sock,queues=3D1,client=3D1,iommu-= support=3D1 \ -- \ --portmask=3Df \ -i \ --rxd=3D512 --txd=3D512 \ --rxq=3D1 --txq=3D1 \ --nb-cores=3D4 \ --forward-mode=3Dio testpmd> set portlist 0,2,1,3 testpmd> start [2]
[3] /home/dpdk-latest/x86_64-native-linuxapp-gcc/build/app/test-pmd/testpmd \ -l 1,2,3 \ -n 4 \ -d /home/dpdk-latest/x86_64-native-linuxapp-gcc/lib/librte_pmd_virtio.so \ -w 0000:06:00.0 -w 0000:07:00.0 \ -- \ --nb-cores=3D2 \ -i \ --disable-rss \ --rxd=3D512 --txd=3D512 \ --rxq=3D1 --txq=3D1 testpmd> show port stats all=20 ######################## NIC statistics for port 0 #####################= ### RX-packets: 1381992 RX-missed: 0 RX-bytes: 82919520 RX-errors: 0 RX-nombuf: 0=20=20=20=20=20=20=20=20=20 TX-packets: 1177961 TX-errors: 0 TX-bytes: 70677660 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### ######################## NIC statistics for port 1 #####################= ### RX-packets: 1178923 RX-missed: 0 RX-bytes: 70735380 RX-errors: 0 RX-nombuf: 0=20=20=20=20=20=20=20=20=20 TX-packets: 1381077 TX-errors: 0 TX-bytes: 82864620 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### testpmd> --=20 You are receiving this mail because: You are the assignee for the bug.=