Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6842865ybi; Mon, 22 Jul 2019 02:39:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8UKscJ47VDCDxFjkhWZJD2JWU/Te+HcGLh907ZCC5bxtNbLG0EgfU1x/DD5I9+Aq27iX5 X-Received: by 2002:a17:902:9a85:: with SMTP id w5mr74524913plp.221.1563788375171; Mon, 22 Jul 2019 02:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563788375; cv=none; d=google.com; s=arc-20160816; b=xemvwAWvKlc4dmO0TpjOeL2iUXOsVB9sy490IiZLZaP9S3roNgg6eSFfLUsAllCeKD tXkk+gHviTupwgaPMFUTUTPs+BX27ZledGcxeh7L4HngpK9L/glN7wJlMg1fpaJ0MK8t nEaapy4VDiuzwtCybB/0L9RQGxCGqq3yx/34DEYuO6VORNeUYxa/nuNFfO3bLIRVjdCi vE2MIWyuA6/Zd0cggNnvwDWnX1pL+NW+X6VNBI1VNhRrFqNKP0Dbtc8fPsmvyKzidz6I bPjqh6e8seKBmYWuH06zCLTLYJ1buH75ikAPDZTxPSJcH/8rjrp1e9nnBFO9o1zcBfvx S0dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SkJ2u0wMOA3m1qg1JxAzWY13eE5SuERAcjkafQkg8FQ=; b=h2lLmXr6xA+AeHeSrCcwUUcJKpPsZdom754IW4XcRDQ2LZstVag5UJfLQQmQunVVef C9GUd/Gsfj1qXzqUtQrYlFGgiOdwq2eEcydC2fkXY9uW71jIocNsoI9jfSRVmReILSsb qH8itII3kooDyKlZm10qc9r5KG4V4QVfRE4l1/PlhuXj1U5+HBOEp5XvXffTnoZ5lpS/ DU2PYC5HpL147j2wUc08j2BiUE2Q1WMCm56TRol29DjbDCDdugJhE/T25DZwjvw+v6DV x6/s6U0wayw5X7UO86XvtrIXPYWpINnNowCcbl0fqwaJ4CDPh1Qh2IQdeME6R/fTA26a xeKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15si8727723pfb.137.2019.07.22.02.39.19; Mon, 22 Jul 2019 02:39:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728675AbfGVJGh (ORCPT + 99 others); Mon, 22 Jul 2019 05:06:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45386 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfGVJGh (ORCPT ); Mon, 22 Jul 2019 05:06:37 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B40D2307D88C; Mon, 22 Jul 2019 09:06:36 +0000 (UTC) Received: from localhost (ovpn-117-250.ams2.redhat.com [10.36.117.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id C788010027B9; Mon, 22 Jul 2019 09:06:33 +0000 (UTC) Date: Mon, 22 Jul 2019 10:06:32 +0100 From: Stefan Hajnoczi To: Stefano Garzarella Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , virtualization@lists.linux-foundation.org, Jason Wang , kvm@vger.kernel.org, "Michael S. Tsirkin" Subject: Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers Message-ID: <20190722090632.GD24934@stefanha-x1.localdomain> References: <20190717113030.163499-1-sgarzare@redhat.com> <20190717113030.163499-5-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BI5RvnYi6R4T2M87" Content-Disposition: inline In-Reply-To: <20190717113030.163499-5-sgarzare@redhat.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Mon, 22 Jul 2019 09:06:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BI5RvnYi6R4T2M87 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 17, 2019 at 01:30:29PM +0200, Stefano Garzarella wrote: > If the packets to sent to the guest are bigger than the buffer > available, we can split them, using multiple buffers and fixing > the length in the packet header. > This is safe since virtio-vsock supports only stream sockets. >=20 > Signed-off-by: Stefano Garzarella > --- > drivers/vhost/vsock.c | 66 ++++++++++++++++++------- > net/vmw_vsock/virtio_transport_common.c | 15 ++++-- > 2 files changed, 60 insertions(+), 21 deletions(-) Reviewed-by: Stefan Hajnoczi --BI5RvnYi6R4T2M87 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl01fJgACgkQnKSrs4Gr c8iGEAf8Djr/PEoFhNeRcB4nTbEZ0yqI9J0bTIg+5JPeRIwVuw8VN0SNdYcbUn4x 8z5Ze/MQcXrji7cU3OHBfNC0aTebpQ7odl8Fh+0Ge74z8CGT4fjTHgVVuFXcGOdw oO0lLxNBn1PEZG3GziU7v1nnOOQMP7p1uedmMBNm1eRJztxOFGIfbl7eQzGYE0/0 UvnT0EbbiIaqcN151Db4L94rvRASIhKQSvk/Vx9lM6kKFzjJml2dO/pirzJvwyg7 ToYEINcqb5vJibA/uV9zXiaQPIuAi4HNSrXWXXvCyPZycd4MsISdRQSig44VmT3P bkhomEAvwsqdfMfALjPSRENrlVKkhg== =9pnw -----END PGP SIGNATURE----- --BI5RvnYi6R4T2M87--