Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp289814pxm; Tue, 1 Mar 2022 21:07:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsakPESMb0t+W+D5D+fc8Jbt4AV+U4yjjh7aq9vnFOHJogHm/UR9cNQl9y409sw3sRnQF1 X-Received: by 2002:a17:902:6e09:b0:151:76bc:8af9 with SMTP id u9-20020a1709026e0900b0015176bc8af9mr9232006plk.152.1646197625826; Tue, 01 Mar 2022 21:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646197625; cv=none; d=google.com; s=arc-20160816; b=qOIrbg2SJZOn2G8zA9ZMjVS9KOG+X21OxCCGV5u1urLiHKDlFnoVZDrkGF9pkTrs2K NhhVxSF2gzFWZmrCdSIrGAJjKRWLOSfuJAUGHNRAfd6669i/NZlcnZqJx7dpvsGvWWfw bKc8b1LLvrrZ9Wgydk/xZkwmp9bj9L5pq+BZvNyOjd0mnuuKtn7oVyDy/wjBojpGmdRe L+qCgm+HL/L3Dd1LeketRORbYexqMDNqu6JGMiwZo73z6BItY6k+axT1AFY3XBFzgnG3 iMWL1eTWfcIWCuT+GsnuXvEYuvyqt79AWF2ZpZ5LqZyKtZIhjfC5MQZRXobaVEaMyGtz vr5A== 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=CGAayov/+ln4jw241yuyUW4Ct9nFUZ87co88ghlbBxs=; b=CMOPIaeY4vbweFAltJVTYQmETLh1TfyTWcUbUft3sWaQE9m0N/2yDVn+eykf7hJTCY 4dLT39KN7Nvshcp+UT9rIVrgHfTAD0qloQxjl6yuonve5LrtqXcHF3l0jyHxflkStaRT B1bQ8QGeLDvAya0dGdvC5uDP0arPv5j8u4gRE29eZf6LNrn+kfPR16Ti6KUjZ3eMIkak 7kkhhqHMsHxaqUcwcSuD+qVFIxrJ6fePETp6cdjDpGnG61KMmLa+kEirC8OReKDatRjf 07TNNZ8qiUrXCe2ohL0PLFO4ho/2zP00m4F0vi1XSCfce7iQQ+wuSJeBWsWZgBuj9U5a XCbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="6X/CY4lN"; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g33-20020a632021000000b00373cbfbf6desi14482972pgg.294.2022.03.01.21.06.48; Tue, 01 Mar 2022 21:07:05 -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; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="6X/CY4lN"; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239383AbiCBDnN (ORCPT + 99 others); Tue, 1 Mar 2022 22:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiCBDnK (ORCPT ); Tue, 1 Mar 2022 22:43:10 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2ADD6379 for ; Tue, 1 Mar 2022 19:42:25 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id t14so536638pgr.3 for ; Tue, 01 Mar 2022 19:42:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CGAayov/+ln4jw241yuyUW4Ct9nFUZ87co88ghlbBxs=; b=6X/CY4lNepwwVJNUDyNOonW19GKWf+tC3IyggXv/pky/jIaRmNZDBA1oKtPdr5LooP NGKqfG9ER+nV+6wWmuaG6ySWeo7M5knP7WrIGGd2gx14VY+Iaxk5v9+l8E5qM0DdoUp0 vfj1L9gkh9aiHq/N7YF85pE3JixdLvTgg3U7I2H2OE1y13flWwd7HQPns9rC0ThP53Yc f8wpusgP0LijX6NczuERy/uccnIF3GYvAK2g4bYqfI7ckZYnu3OXNGw07ag8YRp6UJVX 8V4QZli5H4TukHaZfnaVDOau/z8mzd6q2iEarVdi9tbpMEqHOlT+0VfLWl0pLw8oMqB6 0RLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CGAayov/+ln4jw241yuyUW4Ct9nFUZ87co88ghlbBxs=; b=acFY68Y1UouLtx9Dxcm/nIwygVKjQvOopP3G7GjlAkDkpjh4ODHDwUL0Os4Prg+NbS +bCOXl0hOHYub7i0vB6DMCU7tXarMaVekww63Nj91vUg3wEExUF/9wS1OOFZXaPZ6q3s 3IbIKOVku/TyTdY5MyzgGuNNzrNm5mNpLq+2gl6HkbiZc4wjWufiSSxiN5nWR21DY4iY WL5Kan0wfH1DAqPvcgp2+EHGdyvHMgQAQNmtGqHE1PMowApbxrFoekd41i3AQjSHBgz0 tK6ExsDz6ZoT+tKJYIrjJwio18EvT6UzfFfbZotF5cZykwrV5tDTkz583mItjCCKb6zD xEXg== X-Gm-Message-State: AOAM532laACLhZ40yP9iJid++CpDGCTH7dQ26/pVJeuBeXmOt6uVcjdH Aqry1ijpB6bVmR1RtYDu9MT/Gw== X-Received: by 2002:a63:eb0c:0:b0:373:334d:c32f with SMTP id t12-20020a63eb0c000000b00373334dc32fmr24326767pgh.358.1646192544523; Tue, 01 Mar 2022 19:42:24 -0800 (PST) Received: from always-x1.bytedance.net ([61.120.150.76]) by smtp.gmail.com with ESMTPSA id gz13-20020a17090b0ecd00b001bc5defa657sm3358585pjb.11.2022.03.01.19.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 19:42:23 -0800 (PST) From: zhenwei pi To: arei.gonglei@huawei.com, mst@redhat.com Cc: jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, helei.sig11@bytedance.com, zhenwei pi Subject: [PATCH v3 1/4] virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC Date: Wed, 2 Mar 2022 11:39:14 +0800 Message-Id: <20220302033917.1295334-2-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220302033917.1295334-1-pizhenwei@bytedance.com> References: <20220302033917.1295334-1-pizhenwei@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Base on the lastest virtio crypto spec, define VIRTIO_CRYPTO_NOSPC. Reviewed-by: Gonglei 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.20.1