Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp14272imm; Tue, 12 Jun 2018 17:28:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLieWK47V9ze4i9+44aT5E5DX2efSnoHOEvUjiV4Aymvf5k43twMYR8ytPUAsdwv+wSefau X-Received: by 2002:a63:7255:: with SMTP id c21-v6mr2061757pgn.99.1528849714155; Tue, 12 Jun 2018 17:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528849714; cv=none; d=google.com; s=arc-20160816; b=OsZKCxxjgcVTypJCtoYRK48T+aUIN44vn1VRe8cSrgrjvdNwaR+dDrcn/EDmahp/1W JtwKEjoK+aowwKi9SSofbwu48yJKvJ1rCH9B/obqzi/9G/L3ttVfCLeMIZvhlE4wn3Ne rJZ29zuXrx5XcH1w47qZbbjzaR9jTUb0DfNiLBnkf2qYM1QPxLRnHnp88kj2kunl+U9R 0noy1c0hPbTykCNstxmCuPuYaDPoZd75PAMBCZdAksAfRLVx5XbiAcW5ktglpwp0Ds38 nF58+h5cTiaICBshFa7iqw/F8fxhYo5osqjLDbE/xLBjRKUJY/Fq9Ma8S+QO/hONNMe8 6HIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=pcr4I+1PhCVpkvyjBhL2qKn1y6iAO29y8Pw+rRvp1Sw=; b=moGQfJT6+SBDvZjEaZbu3MBACxj/GX5XWtUq+Myosuq/rKXZK6eO9qk1ax5ouN6I98 BhGTVaNVB4ombzunnniKw+rv0tl0As9a1yq0pyr6OmupKdgTXqCsxRpbSSK6ZhwEM5sH ARUnKd3s5YrycYwMtoJlzFQOGc63V0Wv2qq4P6qlu97va9OaMZ/5JCAi/O8WUfVj+PyR rajNZb4BUXlXuRxT+PyT4SNBLHRdoe+mOnzHrsgXGAUjmmodeGj1udZNdNeIWYZRpk80 WOMR5KkB/P7conrW5MKvXlhsBgxOUXLYmqmaHokpw/01N3en+/p/Qk3spKpk79ae7uCz GrPg== 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 v187-v6si1167091pgb.86.2018.06.12.17.28.18; Tue, 12 Jun 2018 17:28:34 -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 S934947AbeFMA1z (ORCPT + 99 others); Tue, 12 Jun 2018 20:27:55 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5938 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933126AbeFMA1y (ORCPT ); Tue, 12 Jun 2018 20:27:54 -0400 Received: from DGGEML403-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id E235A5C664290; Wed, 13 Jun 2018 08:27:49 +0800 (CST) Received: from DGGEML511-MBX.china.huawei.com ([169.254.1.61]) by DGGEML403-HUB.china.huawei.com ([fe80::74d9:c659:fbec:21fa%31]) with mapi id 14.03.0382.000; Wed, 13 Jun 2018 08:27:42 +0800 From: "Gonglei (Arei)" To: Farhan Ali , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" CC: "mst@redhat.com" , "qemu-devel@nongnu.org" , longpeng , "pasic@linux.ibm.com" , "frankja@linux.ibm.com" , "borntraeger@de.ibm.com" Subject: RE: [RFC v1 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks Thread-Topic: [RFC v1 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks Thread-Index: AQHT/1wog5TEYt3+pEuMF7dtBztmiKRan3qwgAG7IYCAAQCc4A== Date: Wed, 13 Jun 2018 00:27:42 +0000 Message-ID: <33183CC9F5247A488A2544077AF19020DB01857D@dggeml511-mbx.china.huawei.com> References: <33183CC9F5247A488A2544077AF19020DB015842@dggeml511-mbx.china.huawei.com> <226dad9f-8931-3886-eb00-352a190c5b5b@linux.ibm.com> In-Reply-To: <226dad9f-8931-3886-eb00-352a190c5b5b@linux.ibm.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.18.62] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEZhcmhhbiBBbGkgW21haWx0 bzphbGlmbUBsaW51eC5pYm0uY29tXQ0KPiBTZW50OiBXZWRuZXNkYXksIEp1bmUgMTMsIDIwMTgg MTowNyBBTQ0KPiBUbzogR29uZ2xlaSAoQXJlaSkgPGFyZWkuZ29uZ2xlaUBodWF3ZWkuY29tPjsg bGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsNCj4ga3ZtQHZnZXIua2VybmVsLm9yZw0KPiBD YzogbXN0QHJlZGhhdC5jb207IHFlbXUtZGV2ZWxAbm9uZ251Lm9yZzsgbG9uZ3BlbmcNCj4gPGxv bmdwZW5nMkBodWF3ZWkuY29tPjsgcGFzaWNAbGludXguaWJtLmNvbTsgZnJhbmtqYUBsaW51eC5p Ym0uY29tOw0KPiBib3JudHJhZWdlckBkZS5pYm0uY29tDQo+IFN1YmplY3Q6IFJlOiBbU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