From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9AEE9A0C47; Thu, 13 May 2021 06:20:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 252B04067E; Thu, 13 May 2021 06:20:42 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id E3BDA4067E for ; Thu, 13 May 2021 06:20:40 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id B8BC4A0C48; Thu, 13 May 2021 06:20:40 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 13 May 2021 04:20:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: major 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 703] [21.05]Host testpmd crash when booting VM with vhost-user 2 queues + viommu X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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=3D703 Bug ID: 703 Summary: [21.05]Host testpmd crash when booting VM with vhost-user 2 queues + viommu Product: DPDK Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: pezhang@redhat.com Target Milestone: --- Versions: OS:RHEl8 DPDK: git://dpdk.org/dpdk=20 # git log -1 commit 47a0c2e11712fc5286d6a197d549817ae8f8f50e (HEAD -> main, tag: v21.05-= rc2) Author: Thomas Monjalon Date: Thu May 6 00:31:24 2021 +0200 version: 21.05-rc2 Signed-off-by: Thomas Monjalon kernel:4.18 qemu:5.2 Steps: 1. In host, boot testpmd with vhost-user 2q and iommu enabled. /usr/local/bin/dpdk-testpmd \ -l 2,4,6,8,10 \ --socket-mem 1024,1024 \ -n 4 \ --vdev net_vhost0,iface=3D/tmp/vhostuser0.sock,queues=3D2,client=3D1,iommu-support= =3D1 \ -b 0000:3b:00.0 -b 0000:3b:00.1 \ -- \ --portmask=3D3 \ -i \ --rxd=3D512 --txd=3D512 \ --rxq=3D2 --txq=3D2 \ --nb-cores=3D4 \ --forward-mode=3Dio 2. Boot VM with vhost-user 2q and iommu.
3. Testpmd crashed after several seconds EAL: Detected 32 lcore(s) EAL: Detected 2 NUMA nodes EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: No available 2048 kB hugepages reported EAL: VFIO support initialized EAL: Using IOMMU type 1 (Type 1) EAL: Probe PCI driver: net_ixgbe (8086:1528) device: 0000:5e:00.0 (socket 0) TELEMETRY: No legacy callbacks, legacy socket not created Interactive-mode selected Set io packet forwarding mode Failed to set MTU to 1500 for port 1 testpmd: create a new mbuf pool : n=3D179456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) Port 0: B4:96:91:14:22:C4 Configuring Port 1 (socket 0) VHOST_CONFIG: vhost-user client: socket created, fd: 39 VHOST_CONFIG: failed to connect to /tmp/vhostuser0.sock: No such file or directory VHOST_CONFIG: /tmp/vhostuser0.sock: reconnecting... Port 1: 56:48:4F:53:54:01 Checking link statuses... Done testpmd>=20 Port 0: link state change event VHOST_CONFIG: /tmp/vhostuser0.sock: connected VHOST_CONFIG: new device, handle is 0 VHOST_CONFIG: read message VHOST_USER_GET_FEATURES VHOST_CONFIG: read message VHOST_USER_GET_PROTOCOL_FEATURES VHOST_CONFIG: read message VHOST_USER_SET_PROTOCOL_FEATURES VHOST_CONFIG: negotiated Vhost-user protocol features: 0xcbf VHOST_CONFIG: read message VHOST_USER_GET_QUEUE_NUM VHOST_CONFIG: read message VHOST_USER_SET_SLAVE_REQ_FD VHOST_CONFIG: read message VHOST_USER_SET_OWNER VHOST_CONFIG: read message VHOST_USER_GET_FEATURES VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL VHOST_CONFIG: vring call idx:0 file:44 VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL VHOST_CONFIG: vring call idx:1 file:45 VHOST_CONFIG: read message VHOST_USER_GET_FEATURES VHOST_CONFIG: read message VHOST_USER_GET_PROTOCOL_FEATURES VHOST_CONFIG: read message VHOST_USER_SET_PROTOCOL_FEATURES VHOST_CONFIG: negotiated Vhost-user protocol features: 0xcbf VHOST_CONFIG: read message VHOST_USER_GET_FEATURES VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL VHOST_CONFIG: vring call idx:2 file:46 VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL VHOST_CONFIG: vring call idx:3 file:47 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 1 to qp idx: 0 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 1 to qp idx: 1 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 0 to qp idx: 2 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 0 to qp idx: 3 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 1 to qp idx: 0 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 1 to qp idx: 1 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 0 to qp idx: 2 VHOST_CONFIG: read message VHOST_USER_SET_VRING_ENABLE VHOST_CONFIG: set queue enable: 0 to qp idx: 3 VHOST_CONFIG: read message VHOST_USER_SET_FEATURES VHOST_CONFIG: negotiated Virtio features: 0x37060ff83 VHOST_CONFIG: read message VHOST_USER_SET_MEM_TABLE VHOST_CONFIG: guest memory region size: 0x80000000 guest physical addr: 0x0 guest virtual addr: 0x7f5800000000 host virtual addr: 0x7f28c0000000 mmap addr : 0x7f28c0000000 mmap size : 0x80000000 mmap align: 0x40000000 mmap off : 0x0 VHOST_CONFIG: guest memory region size: 0x180000000 guest physical addr: 0x100000000 guest virtual addr: 0x7f5880000000 host virtual addr: 0x7f2740000000 mmap addr : 0x7f26c0000000 mmap size : 0x200000000 mmap align: 0x40000000 mmap off : 0x80000000 VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK VHOST_CONFIG: vring kick idx:0 file:50 VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL VHOST_CONFIG: vring call idx:0 file:51 VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK VHOST_CONFIG: vring kick idx:1 file:44 VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL VHOST_CONFIG: vring call idx:1 file:52 pvp_2q.sh: line 13: 22354 Segmentation fault (core dumped) /usr/local/bin/dpdk-testpmd -l 2,4,6,8,10 --socket-mem 1024,1024 -n 4 --vdev net_vhost0,iface=3D/tmp/vhostuser0.sock,queues=3D2,client=3D1,iommu-support= =3D1 -b 0000:3b:00.0 -b 0000:3b:00.1 -- --portmask=3D3 -i --rxd=3D512 --txd=3D512 -= -rxq=3D2 --txq=3D2 --nb-cores=3D4 --forward-mode=3Dio # dmesg ... [ 7114.427665] vhost-events[22363]: segfault at 44 ip 00000000009d01f5 sp 00007f2957f18f80 error 4 in dpdk-testpmd[400000+f53000] [ 7114.439051] Code: 55 44 89 c5 53 48 89 fb 48 83 ec 48 4c 8b 6f 60 48 89 = 74 24 08 48 89 54 24 10 64 48 8b 04 25 00 00 00 00 48 03 05 c3 a9 ba 00 <41> 8= b 4d 44 8b 00 85 c9 0f 84 2d 01 00 00 83 f8 7f 0f 87 24 01 00 Other informations: 1. vhost-user single queue + viommu works well 2. vhost-user 2 queues + without viommu work well --=20 You are receiving this mail because: You are the assignee for the bug.=