From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 0/2] Fix virtio-user multi-process crash. Date: Thu, 06 Apr 2017 22:14:59 +0200 Message-ID: <4691348.WVCvaACybL@xps13> References: <1488102926-24158-2-git-send-email-amis@radware.com> <1488445242-8824-1-git-send-email-amis@radware.com> <1655428.Al161abRzh@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ami Sabo , yuanhan.liu@linux.intel.com Return-path: Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) by dpdk.org (Postfix) with ESMTP id 703282A6C for ; Thu, 6 Apr 2017 22:15:01 +0200 (CEST) Received: by mail-wr0-f171.google.com with SMTP id t20so79290054wra.1 for ; Thu, 06 Apr 2017 13:15:01 -0700 (PDT) In-Reply-To: <1655428.Al161abRzh@xps13> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Ping 2017-03-08 12:40, Thomas Monjalon: > 2017-03-02 11:00, Ami Sabo: > > The patchset fixes secondary process crash issue when it tries > > to access virtio-user pmd (e.g. via rte_eth_rx_burst). > > > > The crash happens because in virtio_user probing, > > eth_dev_attach_secondary is not being called, as it does from > > rte_eth_dev_pci_probe. Therefore, the device is not properly > > initialized. > > > > The patchset contains 2 patches: > > 1. Export rte_eth_dev_attach_secondary, so non-pci drivers will be > > allowed to call it. > > 2. Fix the actual bug by calling the function during virtio_user probe. > > I do not understand why nobody complains for other virtual devices. > We should have the same issue with pcap, tap, ring, af_packet, etc. > Probably that other drivers are broken in secondary processes. > Or should we make a fix to handle every secondary vdev in > rte_eth_dev_allocate() ? Any opinion?