Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp903933lqp; Thu, 23 May 2024 03:43:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhJ9kmqSi4JLqACbEZSnK7In2zVctn20ZWc0OMrlBlRfN3zDcXBi+9MSbG5jfL7YfdiTosD8aljzCROU57EV4Gskl6c0+icQV+FGBzeg== X-Google-Smtp-Source: AGHT+IH73Tzy/lMMA0QvB9riWHahDyRmXnB6fSKTmA08Sw5HJ+VkDVk7A8PM7k9MCWVDYMWzb35v X-Received: by 2002:a05:6a21:2725:b0:1af:f875:63b0 with SMTP id adf61e73a8af0-1b1f8b44be0mr4436484637.48.1716461032314; Thu, 23 May 2024 03:43:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716461032; cv=pass; d=google.com; s=arc-20160816; b=DUxDBAC921ZiiXxb+RBjhHW5zDZBDKZPuKOnr4Gg29pffKZ7w2CJdjNZwk1CsAHDEy V3mvhdBY7NIDUFA35A7E1DWYBdXQamOHGfIwr1PZCjQxM6F0IafiXNFD21tAoIUm9At9 +ngx+LwqW9XR4baUObKKwdYJwUmfCo84ToJKoptxtMUSfXueDgZjup6a7z40NDRkdHfp VBUBIA3WF9zDvTYFy5Z3TdHOuXvmdnGzdHlLGq2wmBJwHuTYV7u44JFKFVOgfmmAcU2Z knqJehL+AW7UniG9KDMDH+CZZH1IkeZrbhgbvZAGcbe1/2KY3y3v+LuGQiBR/055A6mz cWxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hbDIGJhvRjqMZ04SQyKdRF9N/GO/OgDidrS2yTufDB8=; fh=+H0bUH18TyZy30rrZ0O1PCK7eoERASNdG2x35EdhcRU=; b=0oYOT/RkEPqq0TSN7vgHwyiddKH/KBn3dA8CgKtMgxa0gb0jwyU7utGvMBKq4zM5HW Livq7bbD/df+NyC5oo3xA7we3hZt3x/7XPvvP3za9ADQyu4q8//50EOanHznUPaSqw0l JpQeOctqnXTO5aARjaumdHgpLn+SApclzOoJ/hGUYdwxKnSBADVpibgnNUe+WjBUWUkg GEhr7xgA0iXewDW+ooGqZFc1045/lBGyAbrlIgzYZtM6uTzwVUb8sW8gB8BWzB9VgfTg ZxbNl/vH10mOhqapTsPfdBuelJYsb7qv8xzdNFF4gxlRpGPs8+8kfI3UmAEl9m7vVf9d Bn7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H3qz4aTV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-187351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f33f1959e8si10402175ad.335.2024.05.23.03.43.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 03:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H3qz4aTV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-187351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F04F0282325 for ; Thu, 23 May 2024 10:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 955FF1448EA; Thu, 23 May 2024 10:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="H3qz4aTV" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C44E8142621 for ; Thu, 23 May 2024 10:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716461017; cv=none; b=a+MpwzcnKIbojj0gZKWTS2QbdFIPNZ2XhquH7ynMHUXtT3Ndy5QlUqG5uwq+5QCmfUw8ka2/rhW5dmoupqkryIQA+Lq7aZ4hQmb2ecIGCqVINWwk/hc9w1/9hZfSDNyXJILa6Duqb1myBw3AC3kDqo4dR2vBh+g9063i+Ax/Sg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716461017; c=relaxed/simple; bh=nDxsQh//zo1y5z5bauVnQVFtzT643YqTMG646rY/zdA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jxD3oUXOzLX8dzeTz3ITl1npfVXQYP2PFEua2dYbQx9JAHbPKxZ1pLx5cMEib5tyby2J+ZTcdiYS4sR8AxfVwmf9cJYxdDy4VdKTsL1V2IBNcj3FICL9LvXwe7TBZwljuJEfg+S6JaMLyPPeEAZ3uQR9PowBmNDWIPSWE+rWvWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=H3qz4aTV; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716461013; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hbDIGJhvRjqMZ04SQyKdRF9N/GO/OgDidrS2yTufDB8=; b=H3qz4aTVKr+OMbvuUxpBrg9t6+NG/SskX0gaFK/95eKyiRgzEZvmvknRtKoT6794KtXJC0 X8gi9x5+8aR61bq8SgwBnqWUgd7v/F0MYLcI4/63U7KUtS4tVXmSdMVbdf+tN9YRn7WhAk ur1/XHAVL2BIdj43AOgm9h+ij5rZ5hE= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-418-kMg-vW0sMIqMjMkZl4aThg-1; Thu, 23 May 2024 06:43:32 -0400 X-MC-Unique: kMg-vW0sMIqMjMkZl4aThg-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-792badf6670so1989112085a.2 for ; Thu, 23 May 2024 03:43:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716461012; x=1717065812; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hbDIGJhvRjqMZ04SQyKdRF9N/GO/OgDidrS2yTufDB8=; b=GkghPfrTyrgyxPkTI0DBGt08vFdaI/U6d2vImJxLfh9DFFGy2LOwzcgtOQ9KKZdiyY WpX48NknktI87IniFiSMN3LFpGw2TdO9xYxnEIjB3Z43LxvN0a/Jm/b40lgdOnnKO6oy DSeDbf/S7W4SZcDhHCLDTe/0I74YJBn37xWd/zyqjYvnmzY64QTIgfBSYfYAP0dDkKbR ZeLwRdne3kqAk/+6ZbmbPf61u9Rmyn+IuOrH5zfCJKAjUEkJbTJhNHCBH/cNF+1+OqGn iyr8rrvZtI8BHZGJEAo56+qEcDKTIv/Lt3NvcxveI9p7chIiDXmtMKWIPC3RaAvJ5V8Q mz+A== X-Forwarded-Encrypted: i=1; AJvYcCVH6cGmH/4zKubxBYE9AcbFnIR3WYBW+Zl7a7eS5SOl5xH7KuG47WYZPlgL/IONjgziA7pYV6d3yL1cv3al7az6OxWto8V2K87jGl0G X-Gm-Message-State: AOJu0YzSun3gdqzDbVT/APNbYgYtXsAHs0zxZbj5SwWYQI8D74wIrOvS /gjiLjBvfrKLlUsla0oMnTmQMxA8qPuSGl0lvRkm3SoYWb6iSExWpQ20FC8syMxJNHWI/jzP+K7 6oou8p1KyovbvkaUTQE9vLaCSNJ/iNMHtvOCtjApPE5pkQh4tmk5CAyNkdgm2Sg== X-Received: by 2002:a05:620a:f87:b0:792:c037:abc7 with SMTP id af79cd13be357-7949943d681mr399676485a.25.1716461011863; Thu, 23 May 2024 03:43:31 -0700 (PDT) X-Received: by 2002:a05:620a:f87:b0:792:c037:abc7 with SMTP id af79cd13be357-7949943d681mr399674785a.25.1716461011444; Thu, 23 May 2024 03:43:31 -0700 (PDT) Received: from sgarzare-redhat (host-79-53-30-109.retail.telecomitalia.it. [79.53.30.109]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794724bb95dsm531587285a.53.2024.05.23.03.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 03:43:30 -0700 (PDT) Date: Thu, 23 May 2024 12:43:26 +0200 From: Stefano Garzarella To: Xuewei Niu Cc: stefanha@redhat.com, mst@redhat.com, davem@davemloft.net, kvm@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xuewei Niu Subject: Re: [RFC PATCH 1/5] vsock/virtio: Extend virtio-vsock spec with an "order" field Message-ID: References: <20240517144607.2595798-1-niuxuewei.nxw@antgroup.com> <20240517144607.2595798-2-niuxuewei.nxw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240517144607.2595798-2-niuxuewei.nxw@antgroup.com> As Alyssa suggested, we should discuss spec changes in the virtio ML. BTW as long as this is an RFC, it's fine. Just be sure, though, to remember to merge the change in the specification first versus the patches in Linux. So I recommend that you don't send a non-RFC set into Linux until you have agreed on the changes to the specification. On Fri, May 17, 2024 at 10:46:03PM GMT, Xuewei Niu wrote: >The "order" field determines the location of the device in the linked list, >the device with CID 4, having a smallest order, is in the first place, and >so forth. Do we really need an order, or would it suffice to just indicate the device to be used by default? (as the default gateway in networking) > >Rules: > >* It doesn’t have to be continuous; >* It cannot exist conflicts; >* It is optional for the mode of a single device, but is required for the > mode of multiple devices. We should also add a feature to support this new field. > >Signed-off-by: Xuewei Niu >--- > include/uapi/linux/virtio_vsock.h | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/include/uapi/linux/virtio_vsock.h b/include/uapi/linux/virtio_vsock.h >index 64738838bee5..b62ec7d2ab1e 100644 >--- a/include/uapi/linux/virtio_vsock.h >+++ b/include/uapi/linux/virtio_vsock.h >@@ -43,6 +43,7 @@ > > struct virtio_vsock_config { > __le64 guest_cid; >+ __le64 order; Do we really need 64 bits for the order? > } __attribute__((packed)); > > enum virtio_vsock_event_id { >-- >2.34.1 >