Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp646588pxj; Fri, 11 Jun 2021 08:02:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2KjZn8ezgLnVPPFrHHD7F2sWj1dIeERyudXF//RFs0U3XmOV06PYFtGvqP5MDvi77Q8p5 X-Received: by 2002:a05:6402:1d38:: with SMTP id dh24mr4313714edb.18.1623423728853; Fri, 11 Jun 2021 08:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623423728; cv=none; d=google.com; s=arc-20160816; b=zxHjVEBb7ukmoUtTzAPp0/lgxF6trs1tAG/fdbfLczXlRsYfPmkkfSER0E5y1MW5FF +13EPVYD1p77Mx1BrMUBF+/khybRPAtXRORsM5SvwCq78ayxQ2aI+88LHxyGnFs7rANb jn+KVawTY8oNHYExg2E08pCknGAWxRaywQVYuBOoPuRkINbk2klwqQYtMQO+ugRrevV6 O5YssXZqkcuUwaZ9I6YJbgA5m/fdjDjiMWaUpUgeZD0AMPP95gS3zLxRWgVfTOFDGupf wSm+zX7UTdQsGvPRD3ezlEjR/BIXjDZ+nqBKUyqVvHuWpqT0Rz6RkmNutXMYAdhbmpeO 9y2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t7t9i6rMyWuByO+c/GmhouwKqq18hXtoe9jqv+4wd88=; b=d+Ksf477/9K5duvpMGoC4Os6eCR0Yc9eVeAu/phF4FEF5o22oK+hpYE9sRLls7grmS b0/5/Fur8/5DFwiU9tv/vHmFeug4Yq25xL3YIDf4aFBGFJwYNPeIsm6cQDAJqrITM9un TefVVVus4nQMIOpk8JVglZYPX3aaiuj2mg/duR26B72kAhAz6iszqued5D9P7745lO5D oBG1NcIhoF15xcHAuw51PzbTBaSxy135BNq06Gp6AIhBUMH2P98M6i63sUEkB+PWhBFG Bes8O3EWeNp7Q19dgCIR5ufCcD2/+rds/SixkmjOmE6xTtdk9s+QsKaZYppzXrUu2Ype 0XOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D2D9iKVi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si5522670ejl.384.2021.06.11.08.01.42; Fri, 11 Jun 2021 08:02:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D2D9iKVi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231722AbhFKPAF (ORCPT + 99 others); Fri, 11 Jun 2021 11:00:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:54385 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231642AbhFKPAC (ORCPT ); Fri, 11 Jun 2021 11:00:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623423484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t7t9i6rMyWuByO+c/GmhouwKqq18hXtoe9jqv+4wd88=; b=D2D9iKVipWG05fdEziT0x+MeUKnbmFQMUb1L32mjhw97HXCRQO6q1ghVJAI8ZMF2mBEuU+ cQxS3l/CPhMFejC3SvIlNJP9TvxzB212h0pl60wQEj1KIlS7CTrjvq08CY7d92KZZC9CrV ZZSIwePFWDFnghrXcKsBoYs83ju+1g8= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-302-4kuxAlB0OTmHN2iuEIzs8A-1; Fri, 11 Jun 2021 10:58:01 -0400 X-MC-Unique: 4kuxAlB0OTmHN2iuEIzs8A-1 Received: by mail-ej1-f72.google.com with SMTP id o5-20020a1709068605b02904034c0d7648so1265884ejx.8 for ; Fri, 11 Jun 2021 07:58:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=t7t9i6rMyWuByO+c/GmhouwKqq18hXtoe9jqv+4wd88=; b=PyRmDMGAPwBm9lXW5363Bnmr9vlYe3VxPO7shMAIwmzweDKyI0EovMMtmccY98Yq/i tD+s7/ur1hGUpAL4kUC97S74TUAZHbCyFC4amHxSIzfaZnypwf+xL4fRsjvAKYTa5rj2 3RurdHB8lsV6jS0nnTXshZ9w7rnaE3Hl2RuAFm2R7i7S5vNQMt4MaArZ1vpeOGwUFECB vFmrOB3kKTdSFoE/FJSoOMjnr5qDN8VNMBmBYqRMM/gV6IFQ8kfdGC1qjz0S4IVMw/yN RZXy+qp/tLlly1NKBk5uAGsnHBYHrUICKDWViDyQI2jXQy7IPK5HKxQG9h5DCFOCWeYx wJ9Q== X-Gm-Message-State: AOAM531R12Zkfg5aIBchOegD4XDUX0KPgf8YxBMpYC6FieOb5OfHGdnI E6dd4VBzslENwUl9j+BELnq0UbU6yTz6fHEgcQ5kbtuyfzXSmQonZ4W2P8QUKlcJsFsGQtDonMO a5OOPXv5xt55jHSe2S5QO/sKS X-Received: by 2002:a17:906:5a9a:: with SMTP id l26mr4120574ejq.490.1623423479992; Fri, 11 Jun 2021 07:57:59 -0700 (PDT) X-Received: by 2002:a17:906:5a9a:: with SMTP id l26mr4120562ejq.490.1623423479766; Fri, 11 Jun 2021 07:57:59 -0700 (PDT) Received: from steredhat (host-79-18-148-79.retail.telecomitalia.it. [79.18.148.79]) by smtp.gmail.com with ESMTPSA id o4sm2647440edc.94.2021.06.11.07.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 07:57:59 -0700 (PDT) Date: Fri, 11 Jun 2021 16:57:56 +0200 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Andra Paraschiv , Norbert Slusarek , Colin Ian King , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "oxffffaa@gmail.com" Subject: Re: [PATCH v11 00/18] virtio/vsock: introduce SOCK_SEQPACKET support Message-ID: <20210611145756.lfi7dwvxqwjhkctr@steredhat> References: <20210611110744.3650456-1-arseny.krasnov@kaspersky.com> <59b720a8-154f-ad29-e7a9-b86b69408078@kaspersky.com> <20210611122533.cy4jce4vxhhou5ms@steredhat> <10a64ff5-86df-85f3-5cf2-2fa7e8ddc294@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <10a64ff5-86df-85f3-5cf2-2fa7e8ddc294@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 05:39:01PM +0300, Arseny Krasnov wrote: > >On 11.06.2021 15:25, Stefano Garzarella wrote: >> Hi Arseny, >> >> On Fri, Jun 11, 2021 at 02:17:00PM +0300, Arseny Krasnov wrote: >>> On 11.06.2021 14:07, Arseny Krasnov wrote: >>>> This patchset implements support of SOCK_SEQPACKET for virtio >>>> transport. >>>> As SOCK_SEQPACKET guarantees to save record boundaries, so to >>>> do it, new bit for field 'flags' was added: SEQ_EOR. This bit is >>>> set to 1 in last RW packet of message. >>>> Now as packets of one socket are not reordered neither on vsock >>>> nor on vhost transport layers, such bit allows to restore original >>>> message on receiver's side. If user's buffer is smaller than message >>>> length, when all out of size data is dropped. >>>> Maximum length of datagram is limited by 'peer_buf_alloc' value. >>>> Implementation also supports 'MSG_TRUNC' flags. >>>> Tests also implemented. >>>> >>>> Thanks to stsp2@yandex.ru for encouragements and initial design >>>> recommendations. >>>> >>>> Arseny Krasnov (18): >>>> af_vsock: update functions for connectible socket >>>> af_vsock: separate wait data loop >>>> af_vsock: separate receive data loop >>>> af_vsock: implement SEQPACKET receive loop >>>> af_vsock: implement send logic for SEQPACKET >>>> af_vsock: rest of SEQPACKET support >>>> af_vsock: update comments for stream sockets >>>> virtio/vsock: set packet's type in virtio_transport_send_pkt_info() >>>> virtio/vsock: simplify credit update function API >>>> virtio/vsock: defines and constants for SEQPACKET >>>> virtio/vsock: dequeue callback for SOCK_SEQPACKET >>>> virtio/vsock: add SEQPACKET receive logic >>>> virtio/vsock: rest of SOCK_SEQPACKET support >>>> virtio/vsock: enable SEQPACKET for transport >>>> vhost/vsock: enable SEQPACKET for transport >>>> vsock/loopback: enable SEQPACKET for transport >>>> vsock_test: add SOCK_SEQPACKET tests >>>> virtio/vsock: update trace event for SEQPACKET >>>> >>>> drivers/vhost/vsock.c | 56 ++- >>>> include/linux/virtio_vsock.h | 10 + >>>> include/net/af_vsock.h | 8 + >>>> .../trace/events/vsock_virtio_transport_common.h | 5 +- >>>> include/uapi/linux/virtio_vsock.h | 9 + >>>> net/vmw_vsock/af_vsock.c | 464 ++++++++++++------ >>>> net/vmw_vsock/virtio_transport.c | 26 ++ >>>> net/vmw_vsock/virtio_transport_common.c | 179 +++++++- >>>> net/vmw_vsock/vsock_loopback.c | 12 + >>>> tools/testing/vsock/util.c | 32 +- >>>> tools/testing/vsock/util.h | 3 + >>>> tools/testing/vsock/vsock_test.c | 116 ++++++ >>>> 12 files changed, 730 insertions(+), 190 deletions(-) >>>> >>>> v10 -> v11: >>>> General changelog: >>>> - now data is copied to user's buffer only when >>>> whole message is received. >>>> - reader is woken up when EOR packet is received. >>>> - if read syscall was interrupted by signal or >>>> timeout, error is returned(not 0). >>>> >>>> Per patch changelog: >>>> see every patch after '---' line. >>> So here is new version for review with updates discussed earlier :) >> Thanks, I'll review next week, but I suggest you again to split in two >> series, since patchwork (and netdev maintainers) are not happy with a >> series of 18 patches. >> >> If you still prefer to keep them together during development, then >> please use the RFC tag. >> >> Also did you take a look at the FAQ for netdev that I linked last >> time? >> I don't see the net-next tag... > >I didn't use next tag because two patches from first seven(which was > >considered to be sent to netdev) - 0004 and 0006 > >were changed in this patchset(because of last ideas about queueing > >whole message). So i removed R-b line and now there is no sense to > >use net-next tag for first patches. When it will be R-b - i'll send it Okay, in that case better to use RFC tag. >to > >netdev with such tag and we can continue discussing second part > >of patches(virtio specific). Don't worry for now. You can do it for the next round, but I think all the patches will go through netdev and would be better to split in 2 series, both of them with net-next tag. Thanks, Stefano