From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 756865A5D for ; Thu, 31 Dec 2015 14:07:23 +0100 (CET) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O0800LZ04G9SI70@mailout2.w1.samsung.com> for dev@dpdk.org; Thu, 31 Dec 2015 13:07:21 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-9d-56852889cc8c Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 75.E4.16778.98825865; Thu, 31 Dec 2015 13:07:21 +0000 (GMT) Received: from fedinw7x64 ([106.109.131.169]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O0800MGU4G9VZ20@eusync3.samsung.com>; Thu, 31 Dec 2015 13:07:21 +0000 (GMT) From: Pavel Fedin To: "'Tan, Jianfeng'" , dev@dpdk.org References: <002a01d142e6$fbfeb4e0$f3fc1ea0$@samsung.com> <002401d143af$38a6fa60$a9f4ef20$@samsung.com> <002c01d143b7$568aace0$03a006a0$@samsung.com> <003901d143c8$f8472f70$e8d58e50$@samsung.com> In-reply-to: Date: Thu, 31 Dec 2015 16:07:20 +0300 Message-id: <003a01d143cc$2f163930$8d42ab90$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQG9CCSBEyyw7dOXpyvuWj3KD0VyOAKSxP3UAeaqL4ICeMdKeAFj1QbGAeJKf/MCSnQPtwLwJiQAnpHwQ9A= Content-language: ru X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t/xq7qdGq1hBk0t5hbvPm1nsuie/YXN gcnj14KlrB6L97xkCmCK4rJJSc3JLEst0rdL4Mr4dDa8YBlrxcFO8QbGmSxdjJwcEgImEkvb HzBC2GISF+6tZwOxhQSWMko8m8/VxcgFZH9nlJizbD9Ygk1AXeL01w9gzSICNhIvp+9hhWj4 yCxxe44AiM0pECbxbdpaZhBbWMBO4vvnq2D1LAKqEhc6tgDVc3DwClhKrFmoBRLmFRCU+DH5 HlgJs4CWxPqdx5kgbHmJzWveMkPcpiCx4+xrRoi1KRIfdpxihqgRkZj27x7zBEbBWUhGzUIy ahaSUbOQtCxgZFnFKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERLAX3YwLj5mdYhRgINRiYd3 QVpLmBBrYllxZe4hRgkOZiURXvtioBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeubvehwgJpCeW pGanphakFsFkmTg4pRoYtXSn/QwJc3UumputuuNRoe2D1Ety5+fYKabc/dfk4G08Mdwxy3Fi HtPLU2t5eYyyzQqOvjsxP/jvtu99dj8fvm0pUVd4kXha7evRtZOONsYITPi9zOhCe1WDzAzb RtOXAn7anCZmNsvb1q8zldXwYvoju0Kp1fmOi4jok08dvMfSYtRWaf9QYinOSDTUYi4qTgQA O7RGv1wCAAA= Subject: Re: [dpdk-dev] [RFC 0/5] virtio support for container 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: Thu, 31 Dec 2015 13:07:23 -0000 Hello! > > Here you ignore errors. And this particular request for some reason ends up > > in EBADF. The most magic part is that sometimes it just > > works... > > Not sure if i can finish it today, and here in Russia we have New Year holidays > > until 11th. > > Oops, I made a mistake here. I got vhost_user_read() and vhost_user_write() backwards. But nevertheless they do the right thing. vhost_user_read() actually writes the message into socket, and vhost_user_write() reads it. So they should work correctly. I've just checked, fd number is not corrupted. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia