From mboxrd@z Thu Jan 1 00:00:00 1970
From: Pavel Fedin
Subject: Re: [RFC 0/5] virtio support for container
Date: Thu, 31 Dec 2015 16:07:20 +0300
Message-ID: <003a01d143cc$2f163930$8d42ab90$@samsung.com>
References: <002a01d142e6$fbfeb4e0$f3fc1ea0$@samsung.com>
<002401d143af$38a6fa60$a9f4ef20$@samsung.com>
<002c01d143b7$568aace0$03a006a0$@samsung.com>
<003901d143c8$f8472f70$e8d58e50$@samsung.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "'Tan, Jianfeng'" , dev@dpdk.org
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)
In-reply-to:
Content-language: ru
List-Id: patches and discussions about DPDK
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
Sender: "dev"
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