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 D3B74A0A0E; Wed, 3 Feb 2021 14:01:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C3E8240589; Wed, 3 Feb 2021 14:01:17 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 1AE01240585 for ; Wed, 3 Feb 2021 14:01:16 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 015E9A0A0F; Wed, 3 Feb 2021 14:01:15 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 03 Feb 2021 13:01:14 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anatoly.burakov@intel.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 633] Secondary process crash with virtio PMD 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=3D633 Bug ID: 633 Summary: Secondary process crash with virtio PMD Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: anatoly.burakov@intel.com Target Milestone: --- This issue looks to be similar to bug 631, but it is not fixed as of latest main or next-net. Spinning up a VM with DPDK as vhost and legacy virtio dev= ice, and running testpmd as primary, and pdump as secondary results in the follo= wing crash: ``` Thread 1 "dpdk-pdump" received signal SIGSEGV, Segmentation fault. 0x0000555555a12cc8 in rte_pci_ioport_map (dev=3D0x555556442bb0, bar=3D0, p=3D0x5555562b9ec0 ) at ../drivers/bus/pci/linux/pci.c= :751 751 switch (dev->kdrv) { (gdb) bt #0 0x0000555555a12cc8 in rte_pci_ioport_map (dev=3D0x555556442bb0, bar=3D0, p=3D0x5555562b9ec0 ) at ../drivers/bus/pci/linux/pci.c= :751 #1 0x0000555555a9cada in vtpci_legacy_ioport_map (hw=3D0x1003b2dc0) at ../drivers/net/virtio/virtio_pci.c:882 #2 0x0000555555a9558a in virtio_remap_pci (pci_dev=3D0x5555562e5ba0, dev=3D0x1003b2dc0) at ../drivers/net/virtio/virtio_pci_ethdev.c:63 #3 0x0000555555a956e2 in eth_virtio_pci_init (eth_dev=3D0x555556232540 ) at ../drivers/net/virtio/virtio_pci_ethdev.c:90 #4 0x0000555555a95488 in rte_eth_dev_pci_generic_probe (pci_dev=3D0x5555562e5ba0, private_data_size=3D128, dev_init=3D0x555555a955= 9c ) at ../lib/librte_ethdev/ethdev_pci.h:129 #5 0x0000555555a95a91 in eth_virtio_pci_probe (pci_drv=3D0x555555ce4600 , pci_dev=3D0x5555562e5ba0) at ../drivers/net/virtio/virtio_pci_ethdev.c:192 #6 0x0000555555a0f72c in rte_pci_probe_one_driver (dr=3D0x555555ce4600 , dev=3D0x5555562e5ba0) at ../drivers/bus/pci/pci_common.c:243 #7 0x0000555555a0f92b in pci_probe_all_drivers (dev=3D0x5555562e5ba0) at ../drivers/bus/pci/pci_common.c:318 #8 0x0000555555a0f9b4 in pci_probe () at ../drivers/bus/pci/pci_common.c:3= 45 #9 0x00005555559c9573 in rte_bus_probe () at ../lib/librte_eal/common/eal_common_bus.c:72 #10 0x00005555559f720a in rte_eal_init (argc=3D8, argv=3D0x7fffffffe230) at ../lib/librte_eal/linux/eal.c:1281 #11 0x0000555555592222 in main (argc=3D8, argv=3D0x7fffffffe3d8) at ../app/pdump/main.c:989=20 ``` Offending commit: ``` commit c8d4b02f72aefda2dbe2895cd661c29161a6770d Author: Maxime Coquelin Date: Tue Jan 26 11:16:12 2021 +0100 net/virtio: move legacy IO to virtio PCI This patch moves Virtio PCI legacy IO handling to virtio_pci.c. Two functions are created so that virtio_pci_ethdev does not have to care about it. Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia Reviewed-by: David Marchand ``` VM setup command is as follows: ``` /home/QEMU/qemu-4.2.1/bin/qemu-system-x86_64 -name vm0 -enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:10.240.183.212:6000-:22 -device e1000,netdev=3Dnttsip1 -chardev socket,id=3Dchar0,path=3D/root/dpdk/vhost-= net0 -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce -device virtio-net-pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,disable-modern=3Dtr= ue,mrg_rxbuf=3Don,csum=3Don,gso=3Don,guest_csum=3Don,host_tso4=3Don,guest_t= so4=3Don,guest_ecn=3Don -cpu host -smp 8 -m 8192 -object memory-backend-file,id=3Dmem,size=3D8192M,mem-path=3D/mnt/huge,share=3Don -= numa node,memdev=3Dmem -mem-prealloc -chardev socket,path=3D/tmp/vm0_qga0.sock,server,nowait,id=3Dvm0_qga0 -device virtio= -serial -device virtserialport,chardev=3Dvm0_qga0,name=3Dorg.qemu.guest_agent.0 -vn= c :4 -drive file=3D/home/image/ubuntu2004.img ``` Test-pmd and pdump can be run without any parameters, so: ``` # app/dpdk-testpmd # ...in another window... # app/dpdk-pdump ``` --=20 You are receiving this mail because: You are the assignee for the bug.=