From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 4FF69C5F2 for ; Tue, 28 Apr 2015 16:19:34 +0200 (CEST) Received: by wgyo15 with SMTP id o15so153256826wgy.2 for ; Tue, 28 Apr 2015 07:19:34 -0700 (PDT) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=1ohnaE8JaI+deSFyuVECl9q/JEq+pUVIlYB3DAIW64A=; b=jVOBhUJlqb4q3d13Y14OIYXRdyWQw8rSjVp9RAV2wRQw7UjfncQ8hDn7QnXb+AFA3/ 3w+qPjDNU2kiDFxqEqiK2hwXxLUkJbcSna/TZ5/A8UhBEBqTlwGWSebV1PYuyjLDiaT/ f+bJTcSo7TACwLNwhpk0hAlswZgURBeU0eK9Ui9YB45u5be3Nn09rJeBuvQzoWhXM2Zv ef6aZ0nR7O4skw5qUrMzttCujk6Ovdm1WJNW1PiwOy5qydsegBG0EvCGxDta3n/aUvnT V0NTckltNGCJEMg6mgxxJJYAqC+xOse0mFhks2/r+d6C8bNga8qUsEriqZv3e8+HErr3 nntQ== X-Gm-Message-State: ALoCoQkF4yq/hpxr5OJisiy6/skJHIgiGwE+C56MFNeHYy2S1JH77FaG9nXAFW+7Pljt+DEKDxkP X-Received: by 10.180.84.8 with SMTP id u8mr30569484wiy.39.1430230774111; Tue, 28 Apr 2015 07:19:34 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id it5sm16658559wid.3.2015.04.28.07.19.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Apr 2015 07:19:33 -0700 (PDT) From: Thomas Monjalon To: Raz Amir Date: Tue, 28 Apr 2015 16:18:49 +0200 Message-ID: <1557791.LqZIs3H9aO@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1429185127-33452-1-git-send-email-razamir22@gmail.com> References: <1428450303-97954-1-git-send-email-razamir22@gmail.com> <1429185127-33452-1-git-send-email-razamir22@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v7] Restore support for virtio on FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 14:19:34 -0000 > Fixes: 8a312224bcde ("eal/bsd: fix fd leak") > > Closing /dev/io fd causes SIGBUS in inb/outb instructions > as the process loses the IOPL privileges once the fd is closed: > (gdb) bt > 0 0x0000000000492f2c in outb (port=49170, data=0 '\000') > at /usr/include/machine/cpufunc.h:244 > 1 0x0000000000492f7a in outb_p (data=0 '\000', port=49170) > at /dpdk/dpdk-2.0.0/lib/librte_pmd_virtio/virtio_pci.h:211 > 2 0x000000000049328d in vtpci_set_status (hw=0x80331f380, status=0 '\000') > at /dpdk/dpdk-2.0.0/lib/librte_pmd_virtio/virtio_pci.c:130 > 3 0x00000000004931fe in vtpci_reset (hw=0x80331f380) > at /dpdk/dpdk-2.0.0/lib/librte_pmd_virtio/virtio_pci.c:108 > 4 0x00000000004a175e in eth_virtio_dev_init (eth_dev=0x831b80 ) > at /dpdk/dpdk-2.0.0/lib/librte_pmd_virtio/virtio_ethdev.c:1150 > 5 0x0000000000462c09 in rte_eth_dev_init (pci_drv=0x79d1a0 , > pci_dev=0x802417560) at /dpdk/dpdk-2.0.0/lib/librte_ether/rte_ethdev.c:326 > 6 0x000000000046f03f in rte_eal_pci_probe_one_driver (dr=0x79d1a0 , > dev=0x802417560) at /dpdk/dpdk-2.0.0/lib/librte_eal/bsdapp/eal/eal_pci.c:487 > 7 0x0000000000475b06 in pci_probe_all_drivers (dev=0x802417560) > at /dpdk/dpdk-2.0.0/lib/librte_eal/common/eal_common_pci.c:116 > 8 0x0000000000475bb9 in rte_eal_pci_probe () > at /dpdk/dpdk-2.0.0/lib/librte_eal/common/eal_common_pci.c:246 > 9 0x000000000046cd63 in rte_eal_init (argc=5, argv=0x7fffffffeaf0) > at /dpdk/dpdk-2.0.0/lib/librte_eal/bsdapp/eal/eal.c:554 > 10 0x0000000000404544 in main () > > Signed-off-by: Raz Amir Applied, thanks