Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2819052imm; Sun, 1 Jul 2018 06:20:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKnt4yzBELjByurtKU+PRV1qNl4oha42816lv531OLF+b7oDgl19M8UMr8tu8QSAP2qDf8G X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr22704783plt.288.1530451203416; Sun, 01 Jul 2018 06:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530451203; cv=none; d=google.com; s=arc-20160816; b=yc9z3Ky1ZTwefdl0oDAO7IJbCPfwobflBJ9GeEilRwq5yrn1n1U1RZ9wkQpT+GpNPK kuam6Rx6SjVetz7WwssY8jEk6IXvhr7PPWRaRDQke2vNn4OFRUCS0ltqm9WK3u16iYrO jhKfyZGyf9pcvoLHsEbUYnDiTdvO7otq8mXiSEyWM7388RFwWLVB7NSvh60Jam7hGVCS /Vxx409R+qB8pEKaHYy6UBiuDG10O1DpRpCD+hpIvl0Jwn/kQVUexBU/BarMyb8/PmgJ 7mKv/43MV37Xmywk/BoFxTkkXgKNY+v05hzUbduIEWR9cDDmayRIctFEQrFmPjEFPbTi 9B0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=mvPInWuMJ5yjcHVjjyk6LFnh/lUfyhdxHYPfDFBdqTc=; b=S/uSVDq0fmEKit0Are5A1Bh42ls8GGQEysNZnIf7T01qtq/icw6nmxm743lT0bUash 1upKAj2m4/aupbiFiJ639iL67h6b6/p8eAtN9uGHywCPgkWBE+3DFpZZ0pq3+QDzRGis KhK8+W//4yzcKZ0T6lYhe6cji1NeH/kQUqG7Ka4zWqo05s3eCicyAcGsBhuYcbWgGOke pxT9ojqqOUVY4eW+tfKXuLbE5LJs9YIVaBJFLbbpP9nQyfIyM/7SQILZZBtKiCO9l+D4 4XHjEZC3Iaoyh78BkIvuc3EcztK/z4J4+tyg3yj+FI3QNFCtG7kJOjYJHz8R4jih43bu LJqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si12450359pgf.687.2018.07.01.06.19.47; Sun, 01 Jul 2018 06:20:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752346AbeGANTD (ORCPT + 99 others); Sun, 1 Jul 2018 09:19:03 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:53692 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbeGANTB (ORCPT ); Sun, 1 Jul 2018 09:19:01 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fZcFn-0003We-TF; Sun, 01 Jul 2018 21:18:59 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fZcFj-0008AP-Kx; Sun, 01 Jul 2018 21:18:55 +0800 Date: Sun, 1 Jul 2018 21:18:55 +0800 From: Herbert Xu To: Farhan Ali Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, borntraeger@de.ibm.com, arei.gonglei@huawei.com, longpeng2@huawei.com, pasic@linux.ibm.com, frankja@linux.ibm.com, jasowang@redhat.com, mst@redhat.com Subject: Re: [PATCH v3 0/2] Detect & register virtio-crypto algos only if it can be supported by backend Message-ID: <20180701131855.5sjnvyvhiq7ktzg3@gondor.apana.org.au> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 11:41:32AM -0400, Farhan Ali wrote: > Hi, > > Currently the Linux virtio-crypto driver registers the crypto > algorithm without verifying if the backend actually supports the > algorithm. > > This kernel patch series adds support for registering algorithm > with Linux crypto layer, only if the algorithm is supported by > the backend device. This also makes the driver more compliant with > the virtio-crypto spec [1]. > > I would appreciate any feedback or comments on this. > > Thank you > Farhan > > Reference > --------- > [1] Virtio crypto spec proposal https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg00816.html > > ChangeLog > --------- > v2 -> v3 > - Add Christian Borntrager's acks for the patches. > > v1 -> v2 > - Modify comment as suggested by Arei (patch 1) > - Modify error message as suggested by Arei (patch 2) > > Farhan Ali (2): > crypto/virtio-crypto: Read crypto services and algorithm masks > crypto/virtio-crypto: Register an algo only if it's supported > > drivers/crypto/virtio/virtio_crypto_algs.c | 112 ++++++++++++++++++--------- > drivers/crypto/virtio/virtio_crypto_common.h | 25 +++++- > drivers/crypto/virtio/virtio_crypto_core.c | 29 +++++++ > drivers/crypto/virtio/virtio_crypto_mgr.c | 81 +++++++++++++++++-- > 4 files changed, 202 insertions(+), 45 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt