From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E90BC433B4 for ; Thu, 22 Apr 2021 10:03:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CFD7F613F2 for ; Thu, 22 Apr 2021 10:03:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235806AbhDVKDg (ORCPT ); Thu, 22 Apr 2021 06:03:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:59464 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235770AbhDVKDa (ORCPT ); Thu, 22 Apr 2021 06:03:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619085775; 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=xNNORhYicU7gfoyOCuO0kweWS4Sw8ld/VVblR3G06wg=; b=fDZBpoqFmTf2EAYDzza1VEPkA/zkresZninQr2hQSsGORzFSHfwsPnn342ibQLovBat1ih sA+J5kAniyZEyFxcvBMZa3fWyYTfx6Dft3GOVlwT+JZ5L8rMb+L97PlL24l/3mGsmyR6lC uBYavJrlPb2XEsSjU0CG6u0NXnMdExE= 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-24-PyKSetFaOt6SHs9_6vNRTw-1; Thu, 22 Apr 2021 06:02:21 -0400 X-MC-Unique: PyKSetFaOt6SHs9_6vNRTw-1 Received: by mail-ej1-f72.google.com with SMTP id lf6-20020a1709071746b029037cee5e31c4so7000973ejc.13 for ; Thu, 22 Apr 2021 03:02:21 -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=xNNORhYicU7gfoyOCuO0kweWS4Sw8ld/VVblR3G06wg=; b=e5VAESmLPtXtMFYfap2SEjWUxW9qBNkeujltVSjJV53+rmENo62W4zM3Rdp8u0Affi 7TU6YLWBUNqjQSNweN5me/XRCE1ybG8W3GMdmBcd/YwVcCe4pbfG+atvqfn2UJFa/h/y vM0qUgek3YAZkwHAAqhFic9Ws0ffuUNgjcqoxKhMLO+k5eQXXA3sA93+/Kxh+6NPIdxs OJKL+d4HTaGjGYfw15fpSo90sGdnoQFh/zXVk5BB/6pnd8txGvaVQkfahubFNPjJFY/x vCwje2icNCQhswTiEqNRCmrYPo5cO0IZqXWvBHeb07+7gfAFFdQeKjsmR8T2lEEDQPg9 UfJA== X-Gm-Message-State: AOAM533I6h5YIeVzYQwjmICikTmZQdcNXqwXIMfhsYWlXklgelHJ1FEt LxIXsBWEv5HgtagpSqHaL69dEprs+eUBZgauJUqsAGoVWtSJUH7n3pj9wsisT/jx4HWYQpwySjO kVNCtk/WIOgIM X-Received: by 2002:a17:906:704a:: with SMTP id r10mr2573002ejj.312.1619085740317; Thu, 22 Apr 2021 03:02:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoHUf/42/0fX52T0AvMJggbGbBnbTG84Gu4+wvT51LpZ70eW/cmD2f8ZCtTt0nyd7+UiYVVg== X-Received: by 2002:a17:906:704a:: with SMTP id r10mr2572977ejj.312.1619085740170; Thu, 22 Apr 2021 03:02:20 -0700 (PDT) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id l15sm1662876edb.48.2021.04.22.03.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 03:02:19 -0700 (PDT) Date: Thu, 22 Apr 2021 12:02:17 +0200 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Colin Ian King , Andra Paraschiv , Norbert Slusarek , Alexander Popov , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stsp2@yandex.ru" , "oxffffaa@gmail.com" Subject: Re: [RFC PATCH v8 00/19] virtio/vsock: introduce SOCK_SEQPACKET support Message-ID: <20210422100217.jmpgevtrukqyukfo@steredhat> References: <20210413123954.3396314-1-arseny.krasnov@kaspersky.com> <20210421095213.25hnfi2th7gzyzt2@steredhat> <2c3d0749-0f41-e064-0153-b6130268add2@kaspersky.com> <20210422084638.bvblk33b4oi6cec6@steredhat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Apr 22, 2021 at 12:40:17PM +0300, Arseny Krasnov wrote: >On 22.04.2021 11:46, Stefano Garzarella wrote: >> On Wed, Apr 21, 2021 at 06:06:28PM +0300, Arseny Krasnov wrote: >>> Thank You, i'll prepare next version. Main question is: does this >>> approach(no SEQ_BEGIN, SEQ_END, 'msg_len' and 'msg_id') considered >>> good? In this case it will be easier to prepare final version, because >>> is smaller and more simple than previous logic. Also patch to spec >>> will be smaller. >> Yes, it's definitely much better than before. >> >> The only problem I see is that we add some overhead per fragment >> (header). We could solve that with the mergeable buffers that Jiang is >> considering for DGRAM. > >If we are talking about receive, i think, i can reuse merge logic for Yep, for TX the guest can potentially enqueue a big buffer. Maybe it's still worth keeping a maximum size and fragmenting as we do now. > >stream sockets, the only difference is that buffers are mergeable >until previous EOR(e.g. previous message) bit is found in rx queue. > I got a little lost. Can you elaborate more? Thanks, Stefano