Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4236832pxf; Tue, 23 Mar 2021 06:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4Ml7i1o3vGesLOgj6/LOOmP/4GMmmztoXKY6jlsUKVY4FmEebd7a11ALdo8hzupIi5CUN X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr4726053ejc.538.1616505413887; Tue, 23 Mar 2021 06:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616505413; cv=none; d=google.com; s=arc-20160816; b=iZz/P64PsoI7oNfFwwYONZkf5mt3Rao+Ry0SCwJw6ZA6jhaQaDjzMWd701m9Bvefg2 3zf//x0AVl1ej8HiB+US5JoI7phVwPAZ3NECYlssr30x29X3OQSqpLsC3oI13/QX1Zlw xFfiedQrAVLV+6I1AIRvIFE/Bb9UA5aJwNuLC9qYN4Oj9LCW/CwEZAW5qOmXKPRS6QWB VuVi5Tac0bbkYu4mC2EgpSDoNfmRWHGConItXxJoRUng1arR+90x6nX5JS8NLo0C+zqh 3EnGvJ3rr9Qp0eOUDmOfz+aBYOny4kKwna+iaQLdO5s1HGIamFPUM/c0tOipVSa1Q0EU UoBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EeL6hXSVnxfFL+svxeMYKMkiWlk6LB5aH1xrBJXqfyg=; b=eMG61edVNQ3LyQX0EhuebI9DPuKCV0/ksOgSPRxQ4Iile3Z3R5qH2bnA1QLWWD6CXg JnQYGjPrjAxnHu+zAUDP5U2Z46HuKSWwLs/I4IRAhYZfb1L4e7vmk66r2BQeT+wljm5M Eb0O2bMNs2KDKeFBY7h8JXtMTSOpT5Hry6v+ASqNzdHI8YN/lFai37Ib4VEhadABUyeG Yh2diTzUk3g3G/NAUPN6PsAKR+UKuNylTZHimfAXlPBJbmHInTfSCYH+Qpg8p6C8N0/t ObMXmz0eb64U9SjCknQ7TRUAI2fHYHUIqJcJizoSm3irb+OVNkHNd2HrS3TYD2ntJLQS jRHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kaspersky.com header.s=mail202102 header.b=JMe0HQkm; 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=REJECT sp=REJECT dis=NONE) header.from=kaspersky.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si14296283ejp.450.2021.03.23.06.16.30; Tue, 23 Mar 2021 06:16:53 -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=@kaspersky.com header.s=mail202102 header.b=JMe0HQkm; 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=REJECT sp=REJECT dis=NONE) header.from=kaspersky.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231708AbhCWNOk (ORCPT + 99 others); Tue, 23 Mar 2021 09:14:40 -0400 Received: from mx12.kaspersky-labs.com ([91.103.66.155]:31575 "EHLO mx12.kaspersky-labs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231641AbhCWNOD (ORCPT ); Tue, 23 Mar 2021 09:14:03 -0400 Received: from relay12.kaspersky-labs.com (unknown [127.0.0.10]) by relay12.kaspersky-labs.com (Postfix) with ESMTP id 2911C7696E; Tue, 23 Mar 2021 16:13:59 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaspersky.com; s=mail202102; t=1616505239; bh=EeL6hXSVnxfFL+svxeMYKMkiWlk6LB5aH1xrBJXqfyg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JMe0HQkm2NuHWxOJ9lRlmiW/J6Nd22N4A0cEcAgYBOlOS0QXQv9IptlbWuz7qehwF rQpCvOA30Jc+/V427KdUhnqpgaxassaBfBLyLAVXTiYKNPEpjay9tG3MMbM7mfETBZ tcclWpDsuDNHbs2mTsfrg7iL5BmAvWYM3ynKkDcJKQpC+s0mN/v3XEdHmPh8f3q/No thd9XgFKY/keiXpTbn2VWCDlWpl6M/yslMPLusLGeowsVhMvYYbeBLtJLQpZdtEw3p WLGf/VuSpGdnlm1nr6KKiog65mlNfjyHRTa5NMdd/a5uHfrzcfL1fEjrZmmKmX3Wx8 36N2ItZLtH2mg== Received: from mail-hq2.kaspersky.com (unknown [91.103.66.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client CN "mail-hq2.kaspersky.com", Issuer "Kaspersky MailRelays CA G3" (verified OK)) by mailhub12.kaspersky-labs.com (Postfix) with ESMTPS id E01D37686F; Tue, 23 Mar 2021 16:13:58 +0300 (MSK) Received: from arseniy-pc.avp.ru (10.64.68.129) by hqmailmbx3.avp.ru (10.64.67.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 23 Mar 2021 16:13:57 +0300 From: Arseny Krasnov To: Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Andra Paraschiv , Norbert Slusarek , Colin Ian King , Alexander Popov CC: , , , , , , Subject: [RFC PATCH v7 15/22] virtio/vsock: SEQPACKET support feature bit Date: Tue, 23 Mar 2021 16:13:49 +0300 Message-ID: <20210323131352.2461534-1-arseny.krasnov@kaspersky.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210323130716.2459195-1-arseny.krasnov@kaspersky.com> References: <20210323130716.2459195-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.64.68.129] X-ClientProxiedBy: hqmailmbx1.avp.ru (10.64.67.241) To hqmailmbx3.avp.ru (10.64.67.243) X-KSE-ServerInfo: hqmailmbx3.avp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 03/23/2021 12:55:25 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 162595 [Mar 23 2021] X-KSE-AntiSpam-Info: LuaCore: 437 437 85ecb8eec06a7bf2f475f889e784f42bce7b4445 X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: arseny.krasnov@kaspersky.com X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;arseniy-pc.avp.ru:7.1.1;127.0.0.199:7.1.2;kaspersky.com:7.1.1 X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 03/23/2021 12:58:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 23.03.2021 11:46:00 X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-KLMS-Rule-ID: 52 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, bases: 2021/03/23 11:43:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2021/03/23 11:40:00 #16480199 X-KLMS-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds new virtio vsock specific feature bit which means SOCK_SEQPACKET support. Guest negotiates this bit with vhost, thus checking that vhost side supports SEQPACKET. Signed-off-by: Arseny Krasnov --- include/uapi/linux/virtio_vsock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/virtio_vsock.h b/include/uapi/linux/virtio_vsock.h index 692f8078cced..619aaebb355a 100644 --- a/include/uapi/linux/virtio_vsock.h +++ b/include/uapi/linux/virtio_vsock.h @@ -38,6 +38,9 @@ #include #include +/* The feature bitmap for virtio vsock */ +#define VIRTIO_VSOCK_F_SEQPACKET 0 /* SOCK_SEQPACKET supported */ + struct virtio_vsock_config { __le64 guest_cid; } __attribute__((packed)); -- 2.25.1