Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2563117pxb; Wed, 9 Feb 2022 23:53:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBxO74F46K8890i1UAc3pwAI/9+/qDWvw562hdUBwCWwQCMvGQkDN5D195kp7/0rRyhMzx X-Received: by 2002:a17:903:1cf:: with SMTP id e15mr6330108plh.12.1644479581525; Wed, 09 Feb 2022 23:53:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644479581; cv=none; d=google.com; s=arc-20160816; b=LcNrE0b6i59AynowVnaLP2NXyKBKzAoR52p4qp4a/R5r9sbxvhGrBbGPpIN385d10L 804/NcE5+RWIFtCFDCURxqUrCm2PErrh9VSLyxT8A0AFz0c6pf1X+wSf06CAw93alh6M 5jdjm1UlEBeYIQ9H0FLkaBcl6oDW5HCRIEytO+Ndi3e6YdXYPl7gD0OMI6IUfcDU0hA9 WO34SiFRBgTiJPMva0MzwnQG6XIFsVyAKyn9vbW9/8tVYGourzTNTkqp8I250Jo7PT54 yqc7bRp6yjDdG4zYlYCiqsJsq0AAGnmihQsOZ5OTxANZIHZfE1Um8pi/cyfxiOMd0Hb7 ba3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=c1mTR1dTCMZHz7kn4zQcSrTd3tlIzfFlc0dMgVnxLAc=; b=IaWAISnYMgHsODvuQYG0PQdSUqiCqB9U353+ObGq9dfWPNa7LyX7epgTsuw3UXOAm9 owNn48L3+GSe3GW8Kw89tu+pMtsLpWOhhBi55A17NtelTa4auhqAVdhXyjky+qSqPbvv BsANVnyy5Blly/Nx7tgD5jQeEQQYojKA3uO6Wht56I5SjnQjH5pNa2Hz539F6BGv49xd 5eIYRuVwX9+RT9Dx5R9DwJjPii3/PBXBkOnj4zaYlkuCGjyrea4Y/rOL4F7ZKG3LT9gC Rw2srX90ouAbUrWjSOAuE5a12HS7IIPvQlaAGlkV0sa8rOqNC5BYQs8jx+IRaIxujfM/ wxrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1si1426948plg.99.2022.02.09.23.52.44; Wed, 09 Feb 2022 23:53:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235878AbiBJHW3 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 Feb 2022 02:22:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbiBJHW2 (ORCPT ); Thu, 10 Feb 2022 02:22:28 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A970C56; Wed, 9 Feb 2022 23:22:28 -0800 (PST) Received: from dggeme760-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4JvSl73RbrzZfRY; Thu, 10 Feb 2022 15:18:11 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggeme760-chm.china.huawei.com (10.3.19.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.21; Thu, 10 Feb 2022 15:22:25 +0800 Received: from dggpemm500006.china.huawei.com ([7.185.36.236]) by dggpemm500006.china.huawei.com ([7.185.36.236]) with mapi id 15.01.2308.021; Thu, 10 Feb 2022 15:22:25 +0800 From: "Gonglei (Arei)" To: zhenwei pi , "mst@redhat.com" CC: "jasowang@redhat.com" , "virtualization@lists.linux-foundation.org" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "helei.sig11@bytedance.com" Subject: RE: [PATCH 1/3] virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC Thread-Topic: [PATCH 1/3] virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC Thread-Index: AQHYDm44Bq+fl173Z0edEmaWVexeY6yMgIDQ Date: Thu, 10 Feb 2022 07:22:24 +0000 Message-ID: References: <20220121022438.1042547-1-pizhenwei@bytedance.com> <20220121022438.1042547-2-pizhenwei@bytedance.com> In-Reply-To: <20220121022438.1042547-2-pizhenwei@bytedance.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.149.11] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: zhenwei pi [mailto:pizhenwei@bytedance.com] > Sent: Friday, January 21, 2022 10:25 AM > To: mst@redhat.com; Gonglei (Arei) > Cc: jasowang@redhat.com; virtualization@lists.linux-foundation.org; > linux-crypto@vger.kernel.org; linux-kernel@vger.kernel.org; > helei.sig11@bytedance.com; zhenwei pi > Subject: [PATCH 1/3] virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC > > Base on the lastest virtio crypto spec, define VIRTIO_CRYPTO_NOSPC. > > Signed-off-by: zhenwei pi > --- > include/uapi/linux/virtio_crypto.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/uapi/linux/virtio_crypto.h > b/include/uapi/linux/virtio_crypto.h > index a03932f10565..1166a49084b0 100644 > --- a/include/uapi/linux/virtio_crypto.h > +++ b/include/uapi/linux/virtio_crypto.h > @@ -408,6 +408,7 @@ struct virtio_crypto_op_data_req { > #define VIRTIO_CRYPTO_BADMSG 2 > #define VIRTIO_CRYPTO_NOTSUPP 3 > #define VIRTIO_CRYPTO_INVSESS 4 /* Invalid session id */ > +#define VIRTIO_CRYPTO_NOSPC 5 /* no free session ID */ > > /* The accelerator hardware is ready */ #define > VIRTIO_CRYPTO_S_HW_READY (1 << 0) > -- > 2.25.1 Reviewed-by: Gonglei