Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3210374pxf; Mon, 15 Mar 2021 04:31:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOAm/IRYpLDXShWYWKRAPAYP26+JRkDQ8K4IE8G4I4mgKGycUATBK0SSF7z+w+YJlsxoEG X-Received: by 2002:a17:906:4705:: with SMTP id y5mr23248449ejq.119.1615807870118; Mon, 15 Mar 2021 04:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615807870; cv=none; d=google.com; s=arc-20160816; b=suxl8GsUkzR6oeoR7UwLKUkzOpggphnqucqJPPNAItAtX8Jm+wiJ0AInzYBDe9GTQ+ tTwLMZkZW90us3Ru/uU8tHOe+yArwuL5ajZNaJCZYIdmizsMOwm4zOS59dXj7Z6RxwEj i32Lt5HXtLHTF/4B7mFiCWk9DDRmLnVpFjcUxscQZkAy+0kqbnCQaHvhnBHM0vcWTu9x rXp7KL8miY1waG3HIl33g3VVBySPxSu5FcBd9KTjXEoC2G4hea4ld7Kw6Kvz/bqLLcQN lSqqJm9Aw86Bh+7eofZRZBKN2/P3AFQ83zj1rQ0AQ0YAGWFe3VaTkojXsXrfsLzY0zd7 uZCA== 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=1+7AUzrzm8HAwAnNkO+PDguvC47LB5o6Xz8fUn4oHzc=; b=JVVtCY/voJmqEofF75dkMHY+gH58vVLc2R/iwTg1rWZkbWYArnj205XYKljcBCsvUj ezZf4ttU/sM4vzf3X9MV96Rpxei3N/ohIuSEaQcZwhuKZmsco/l5FLvz506XoBql3cGB r1NUi+KWJMaIpd3bfJ9A3GhjtzqJ136xa2K55Mn57AqhAx/dpJTwDAbjmcbV7hPGzulQ 3SAtWT1lp1bwaKgLgKqZq1APXBnvLmRtukGu1AZE5Pzf2YAIzLyt8R66thCohmAjmDto IH2WZ2+w5FS6PwYCOdg3ynFU5QAGvmr3UKSBIWNVVwk/FuYKIFSBcLLcgKTxJBoVwT4F oH/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cAVkKJgh; 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 x26si10791670edv.23.2021.03.15.04.30.47; Mon, 15 Mar 2021 04:31:10 -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=cAVkKJgh; 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 S230337AbhCOL37 (ORCPT + 99 others); Mon, 15 Mar 2021 07:29:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:21703 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbhCOL3e (ORCPT ); Mon, 15 Mar 2021 07:29:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615807773; 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=1+7AUzrzm8HAwAnNkO+PDguvC47LB5o6Xz8fUn4oHzc=; b=cAVkKJghkyTwlNk4NqOLqTmWgkmXUrZnNWhVNe1TvNtp0pdjg7AN5GxKcEAIqyehLTLSHE xPrX+s9EVgOqnXdNQ33ogp7sBk1ymMfsTiGRP+A8TkRYo0F+91JfEFYuOm0nds3MLt8MZv p4B33M4LdYNvQuZ3sLESc2ZbbXzClCw= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-518-FxdNRoXdOGSC3Fj9CpwHtw-1; Mon, 15 Mar 2021 07:29:32 -0400 X-MC-Unique: FxdNRoXdOGSC3Fj9CpwHtw-1 Received: by mail-wm1-f72.google.com with SMTP id b20so2357298wmj.3 for ; Mon, 15 Mar 2021 04:29:31 -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=1+7AUzrzm8HAwAnNkO+PDguvC47LB5o6Xz8fUn4oHzc=; b=O8bSQ9/0JcLbP1y1euGjFinJMs/Ry7LAK/oZCZFG5q+ut7BjcmVJZ+73VdD1oacMnD M5qrLVb4MRa/8WrGrSXVlbo+HYEizPeJXnWzzUO0G1B7Wl3LUGUZ3291ibsZfKgfTA5m tW40ppVXnZQseiPiFU0v5GymEELdX+xfDJhROTDS9LGGRZhZsRjZ9chuW1KlnWKSRLNQ N+G+6jqJsnEJ5i4xbNmfXS+Bhp/w+wKvIK3g0q/wR8dgZC5c/WVcCvvq75zVOmMOgqOc OwAwZ6C0YC8DKYb74Vh3T5UqMQnMopXNH300LUPwJSUPKFT2BF/gcVLKttYviKHOIaVH I+fg== X-Gm-Message-State: AOAM531A1TCO7p2mV0YeucUW9NxSxmJLp34HQf0w/LCZEhzi/FqFkKNL HVWx5IOWbkRd/uNySVG3S1yUPgBXXldlI+OCbx6ZIBoDE7c7/g4vH9eOXQdy79wRiJLxR5GGHoq 7ZDlzW6OmHdhQm/hGsGpj1EUX X-Received: by 2002:a5d:4d0f:: with SMTP id z15mr27172920wrt.192.1615807770754; Mon, 15 Mar 2021 04:29:30 -0700 (PDT) X-Received: by 2002:a5d:4d0f:: with SMTP id z15mr27172900wrt.192.1615807770597; Mon, 15 Mar 2021 04:29:30 -0700 (PDT) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id s16sm18201253wru.91.2021.03.15.04.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 04:29:30 -0700 (PDT) Date: Mon, 15 Mar 2021 12:29:27 +0100 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Norbert Slusarek , Colin Ian King , Andra Paraschiv , 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 v6 17/22] virtio/vsock: SEQPACKET feature bit support Message-ID: <20210315112927.4aygxeby2f7p3mju@steredhat> References: <20210307175722.3464068-1-arseny.krasnov@kaspersky.com> <20210307180404.3466602-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210307180404.3466602-1-arseny.krasnov@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 07, 2021 at 09:04:01PM +0300, Arseny Krasnov wrote: >This adds handling of SEQPACKET bit: guest tries to negotiate it >with vhost. > >Signed-off-by: Arseny Krasnov >--- > net/vmw_vsock/virtio_transport.c | 5 +++++ > 1 file changed, 5 insertions(+) Also for this patch I think is better to move after we set the seqpackets ops. > >diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c >index 2700a63ab095..41c5d0a31e08 100644 >--- a/net/vmw_vsock/virtio_transport.c >+++ b/net/vmw_vsock/virtio_transport.c >@@ -612,6 +612,10 @@ static int virtio_vsock_probe(struct virtio_device *vdev) > rcu_assign_pointer(the_virtio_vsock, vsock); > > mutex_unlock(&the_virtio_vsock_mutex); >+ >+ if (vdev->features & (1ULL << VIRTIO_VSOCK_F_SEQPACKET)) >+ virtio_transport.seqpacket_allow = true; >+ > return 0; > > out: >@@ -695,6 +699,7 @@ static struct virtio_device_id id_table[] = { > }; > > static unsigned int features[] = { >+ VIRTIO_VSOCK_F_SEQPACKET > }; > > static struct virtio_driver virtio_vsock_driver = { >-- >2.25.1 >