From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIWmK-0000pI-LX for qemu-devel@nongnu.org; Thu, 30 Jun 2016 03:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIWmF-0002iX-LA for qemu-devel@nongnu.org; Thu, 30 Jun 2016 03:52:51 -0400 Received: from jessie.kos.to ([212.47.231.226]:58788 helo=pilvi.kos.to) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIWmF-0002hj-Er for qemu-devel@nongnu.org; Thu, 30 Jun 2016 03:52:47 -0400 Date: Thu, 30 Jun 2016 10:52:41 +0300 From: Riku Voipio Message-ID: <20160630075241.GA136160@beaming.home> References: <1466531475-13389-1-git-send-email-laurent@vivier.eu> <1466531475-13389-2-git-send-email-laurent@vivier.eu> <071d2544-1b5c-030f-9926-b4b32db302be@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <071d2544-1b5c-030f-9926-b4b32db302be@vivier.eu> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/3] linux-user: fd_trans_*_data() returns the length List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org Hi, I've merged the netlink patches the que[1]. I'm waiting to see if we'll get some fixup patches to the fairly substantial changes linux-user has seen in this cycle. Riku [1] https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/head= s/linux-user-for-upstream On Tue, Jun 28, 2016 at 06:50:20PM +0200, Laurent Vivier wrote: > Ping? >=20 > Laurent >=20 > Le 21/06/2016 =C3=A0 19:51, Laurent Vivier a =C3=A9crit : > > fd_trans_target_to_host_data() and fd_trans_host_to_target_data() mus= t > > return the length of processed data. > >=20 > > Signed-off-by: Laurent Vivier > > --- > > linux-user/syscall.c | 36 ++++++++++++++++++++++++++++++++---- > > 1 file changed, 32 insertions(+), 4 deletions(-) > >=20 > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > > index 0082762..9a5cd26 100644 > > --- a/linux-user/syscall.c > > +++ b/linux-user/syscall.c > > @@ -2821,12 +2821,26 @@ static TargetFdTrans target_packet_trans =3D = { > > #ifdef CONFIG_RTNETLINK > > static abi_long netlink_route_target_to_host(void *buf, size_t len) > > { > > - return target_to_host_nlmsg_route(buf, len); > > + abi_long ret; > > + > > + ret =3D target_to_host_nlmsg_route(buf, len); > > + if (ret < 0) { > > + return ret; > > + } > > + > > + return len; > > } > > =20 > > static abi_long netlink_route_host_to_target(void *buf, size_t len) > > { > > - return host_to_target_nlmsg_route(buf, len); > > + abi_long ret; > > + > > + ret =3D host_to_target_nlmsg_route(buf, len); > > + if (ret < 0) { > > + return ret; > > + } > > + > > + return len; > > } > > =20 > > static TargetFdTrans target_netlink_route_trans =3D { > > @@ -2837,12 +2851,26 @@ static TargetFdTrans target_netlink_route_tra= ns =3D { > > =20 > > static abi_long netlink_audit_target_to_host(void *buf, size_t len) > > { > > - return target_to_host_nlmsg_audit(buf, len); > > + abi_long ret; > > + > > + ret =3D target_to_host_nlmsg_audit(buf, len); > > + if (ret < 0) { > > + return ret; > > + } > > + > > + return len; > > } > > =20 > > static abi_long netlink_audit_host_to_target(void *buf, size_t len) > > { > > - return host_to_target_nlmsg_audit(buf, len); > > + abi_long ret; > > + > > + ret =3D host_to_target_nlmsg_audit(buf, len); > > + if (ret < 0) { > > + return ret; > > + } > > + > > + return len; > > } > > =20 > > static TargetFdTrans target_netlink_audit_trans =3D { > >=20