Received: from eggs.gnu.org ([2001:4830:134:3::10]:57426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKCTp-0005An-7C for qemu-devel@nongnu.org; Mon, 04 Jul 2016 18:36:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKCTk-0006rD-6b for qemu-devel@nongnu.org; Mon, 04 Jul 2016 18:36:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKCTk-0006r9-15 for qemu-devel@nongnu.org; Mon, 04 Jul 2016 18:36:36 -0400 Date: Tue, 5 Jul 2016 01:36:32 +0300 From: "Michael S. Tsirkin" Message-ID: <20160705013601-mutt-send-email-mst@redhat.com> References: <1466503372-28334-1-git-send-email-marcandre.lureau@redhat.com> <1466503372-28334-7-git-send-email-marcandre.lureau@redhat.com> <20160623072717-mutt-send-email-mst@redhat.com> <395281151.1343677.1466673378323.JavaMail.zimbra@redhat.com> <20160623200402-mutt-send-email-mst@redhat.com> <20160704184410-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 06/24] vhost-user: check vhost_user_write() return value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Cc: yuanhan liu , Victor Kaplansky , QEMU , jonshin@cisco.com, Tetsuya Mukawa On Tue, Jul 05, 2016 at 12:01:49AM +0200, Marc-Andr=E9 Lureau wrote: > On Mon, Jul 4, 2016 at 5:46 PM, Michael S. Tsirkin wro= te: > > Let's just work on handling it. If we need debug messages to help us > > reach that goal fine. But I don't see many reasons to propagate > > return codes back and forth if caller just prints and ignores it. > > Print it where it's detected :) >=20 >=20 > Adding more debug messages is not the point of this patch though, it > is to break the code flow when an error occurs, not later. Sure we can > add error_report() in vhost_user_write() that would be more consistent > with vhost_user_read() actually. Yes but we should look for more ways to continue after an error, not for ways to break the flow IMHO. >=20 > --=20 > Marc-Andr=E9 Lureau