From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46])
 by dpdk.org (Postfix) with ESMTP id B87F1ADAC
 for <dev@dpdk.org>; Thu, 19 May 2016 18:43:36 +0200 (CEST)
Received: by mail-wm0-f46.google.com with SMTP id n129so239243550wmn.1
 for <dev@dpdk.org>; Thu, 19 May 2016 09:43:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:user-agent:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=3Sn4OZCNuqgZ660IVpjXlVAaY5YjIAGnhRjqb+BCgVg=;
 b=henzoNAaooFhSCLvWR9hKD+FrHkDg7WgtVdmh905zg6+U4Xt9asUXKYs3IqdkNDL5O
 xhA+nSr+YtSypw4bB4OT4foQw9uRw+nY77fvfctW7LyINvniQtG/zO7ABaNZeO1rNjg+
 jUx/0/HyiIrNHl4GgsD4Ha7iC5oRGOJzYibTXrej0lgmjO2o1yhpuzOBERI71gL6loL7
 2XUaiK4jVAVJjND47MY1b1RiQuE1PPR80yqGBJQzlWjaAFWjn9h9+2S49KzPFfiRjXhw
 E1it2s9OknLNibCGf4rifUhPrA5RP6oGqkX+xZ+jVEc5iKUJU9UhznkZHBPzNp+wgopV
 i53A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent
 :in-reply-to:references:mime-version:content-transfer-encoding;
 bh=3Sn4OZCNuqgZ660IVpjXlVAaY5YjIAGnhRjqb+BCgVg=;
 b=PXBIOLfnxaIMwyPlIVYkkR6FhYWM7kQRMIETRmgTTN36UZLyDHByA7V4H4ws4nOX+R
 u0tmlbD6VJvSA6/Z9Tqbec5VcE2oXjtoZjOfmMz/6T0dOI64xGutqwn/UYVKHXzaZ023
 vsV9R3kxnBwfSqjKQl9X+EZ6kF4ZHbJubTCrQV9vtMLePv2pYS/SPHzzmPwecjt7jFRi
 facm9Mz2hS5rwUmhbDaFu84MVzXI48mdTxPjlhn8pY/EW8MFwaHUwPXJ8v3kAZIj7+tw
 M7mQ/TyIHsZRESj0CiTH7B3kQuFe+IxjfT0tHPfnj0QkmtvR7wd4bYtWFyFDweJPg+PJ
 3E/Q==
X-Gm-Message-State: AOPr4FVcSyJ1ccoWY3hlGLdrittpgkHSsfQpundDhgEuy0ADt2dBznD156qSw5LDYTnb79xK
X-Received: by 10.28.213.1 with SMTP id m1mr37516038wmg.103.1463676216439;
 Thu, 19 May 2016 09:43:36 -0700 (PDT)
Received: from xps13.localnet (113.202.154.77.rev.sfr.net. [77.154.202.113])
 by smtp.gmail.com with ESMTPSA id c7sm9825110wji.38.2016.05.19.09.43.33
 (version=TLSv1/SSLv3 cipher=OTHER);
 Thu, 19 May 2016 09:43:35 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Yoni Gilad <Yonig@radcom.com>
Cc: dev@dpdk.org, Huawei Xie <huawei.xie@intel.com>,
 Yuanhan Liu <yuanhan.liu@linux.intel.com>
Date: Thu, 19 May 2016 18:43:19 +0200
Message-ID: <5703424.Nz7AfLLfu1@xps13>
User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; )
In-Reply-To: <DB3PR05MB4919295860E52A070C06A87D54A0@DB3PR05MB491.eurprd05.prod.outlook.com>
References: <DB3PR05MB4919295860E52A070C06A87D54A0@DB3PR05MB491.eurprd05.prod.outlook.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-dev] virtio: crash when using multiple processes (16.04
	regression)
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 19 May 2016 16:43:36 -0000

2016-05-19 16:20, Yoni Gilad:
> We have encountered a crash in virtio_xmit_pkts (specifically, in the call to virtqueue_notify) when running DPDK in a multi-process setup. This is a regression in DPDK 16.04.

Thanks a lot for reporting.

2 tips to improve such bug report:

- Send it to the maintainer of virtio (and cc this list).
You can find them in the MAINTAINERS file. I've cc'ed them.

- Try to test early the release candidates to have it fixed before
the bug is really released.

> The culprit seems to be the field vtpci_ops in the virtio_hw structure. This field is stored in shared memory, but points to a struct in the primary process's address space. If the same struct was loaded in a different address in the secondary process, it will lead to a crash or other issues when this field is dereferenced there. The referenced virtio_pci_ops struct contains function pointers, which can also be different in the secondary process.