Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp138199rdg; Thu, 12 Oct 2023 00:46:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIeyceZGLty15Ea4uatKCNLk/bZYqHlr6I7zrpWwozo7XsMgzO3Gm081xE2R6AHI9GZcNY X-Received: by 2002:a9d:63da:0:b0:6b9:a6ef:2709 with SMTP id e26-20020a9d63da000000b006b9a6ef2709mr26236776otl.8.1697096780784; Thu, 12 Oct 2023 00:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697096780; cv=none; d=google.com; s=arc-20160816; b=b0Sx3IBLPGMPnji8BX5bXLig60RYy17pM18OxZKHqnJR/1AjIIEBzWzTtOw+IMWEPW jAYr1al+TGUubpov7iEzM5y+9J12zO8CU9ew5eddKCypg7b2rHmQCMQ+FVxKh38vdA/A jXkIBFxFXR62oXJ6O5NWqDzI2njon0lWQJ3AaR0Rgklinco+GH7h1G66d0AHgVuj73SF 66Av9K41/hoAXwdlND/55T+bU4qoQF0/nZ/xiq47g+dlXI8139pHJ2334WaorMMxt7ai qkQk9y9WMNrmWCFNk49BUysGKLxPCOdi9ZQeZFgN6mG86Br4eGsypUiOjYPPM6Bv+Uw5 L7qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Eu3ZBxNKXwBJrRsvuzwKzxYy0t1l06kZ/jHAue3rPI0=; fh=9hDCfqVTRnp0iTOLtQNnbRRPXgRiHmRQ7KDjYRbq6LI=; b=Im3gIXEKv6iN7H8WQEgxDU4WTbxrdiC1hUsbru1aiCClOJBjIYCLRyLzCFuLJCdTQ+ 3L9GwM1yNWYHn3jWI9NOjH8xMqS9lwoTAPx4FZsGZ6q4wI7eM2y4fGst+RotoOwVxtCl jcZq/I4/1qeR1UVhJft38Ec+WFCW5GHrnJPUxzqTSVHBjQj9TOZxO17YftLpagwIv4TC mJ5SmMoqQ0B1GYJPfD0i3ZlUte1S48eTjJ5VwTpjFwAJDhk/GzxN/3lsAZLrqvUqXlVW TWMqpTo5vJhDMHaADsz33Vw6srZ7ECsBUe5IUUmaaOpnjlDB0e4gSlVsK4dJx8hwbcG6 gKlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=k3eGvedO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id fd20-20020a056a002e9400b0068fce6a86acsi14626137pfb.121.2023.10.12.00.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=k3eGvedO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6EA1580AD24D; Thu, 12 Oct 2023 00:46:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347178AbjJLHp5 (ORCPT + 99 others); Thu, 12 Oct 2023 03:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343632AbjJLHpz (ORCPT ); Thu, 12 Oct 2023 03:45:55 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EFDEB7 for ; Thu, 12 Oct 2023 00:45:54 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id E7A4740E0196; Thu, 12 Oct 2023 07:45:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id y-Tu1NrUSDq8; Thu, 12 Oct 2023 07:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1697096750; bh=Eu3ZBxNKXwBJrRsvuzwKzxYy0t1l06kZ/jHAue3rPI0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k3eGvedO2tbEQiE6u5U1zqHkX1uQwlN6PPiRzjQqQAQ47vvy1sFSYaixQ7plg09HE AgpEJX4801byNeI2Izd3EnZxNgyvyN1KBm8cRyVW57wkp7bMc9miSECGAvDtuk131i E3pX5Ylomve2eUDRp4KJBNCuHJ+qxNiK0iq5CF4NsMenESmacQaJtcExbdBtGVGv9Z hCmWsHhAEHECI+YxNMPUQL/5VchZEb0HzMT6Pu7JmigLfLrcsk08eV1dNVzNE1RRPU 1PGODVovfbWior64egZjQ6rDCv9GFXzNIdASDDjQhgBLlrtHEx1nyrQC2mnnlN5czN R4er+Caoo88LHYd0ukV8RcJ7oEQ5akFk0eRE7WJJWBis3kxyKFzYW2S6DlNSwikPnD ypn8yof441h2xcSwW47w7RaTlJIeWvvIoxZqP9bjHh8yu7tAJIrR/doxnvOwVo25Ee 104N0wKr5LHSxAZezvYW0Fn4NCnsXWKHAiq08BSlaA8gXZCUp8aERgjAueVCgFDaUQ ZbLWGvFzt7mCePtV0YnULpoz/R4B7fo5Dl7Sljbkn3m14aEj3O5hw5A0TOmOjCXqAB o7sy2EYefqI0pSdgl14fiL1eUdYI18fJNsAI6eSUe64HgYX23G9xpaLfo+0+icSyP/ IXVA3P7pLnNgp2RkXJiJBdjc= Received: from zn.tnic (pd953036a.dip0.t-ipconnect.de [217.83.3.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E9ABF40E00B3; Thu, 12 Oct 2023 07:45:41 +0000 (UTC) Date: Thu, 12 Oct 2023 09:45:39 +0200 From: Borislav Petkov To: "Nikunj A. Dadhania" Cc: linux-kernel@vger.kernel.org, x86@kernel.org, thomas.lendacky@amd.com, dionnaglaze@google.com, pgonda@google.com, seanjc@google.com, pbonzini@redhat.com Subject: Re: [PATCH v4 01/14] virt: sev-guest: Use AES GCM crypto library Message-ID: <20231012074539.GCZSekIxe9KM1lG9eC@fat_crate.local> References: <20230814055222.1056404-1-nikunj@amd.com> <20230814055222.1056404-2-nikunj@amd.com> <20231011185607.GVZSbvx8rJ8DXPqYfg@fat_crate.local> <3b484a1a-e6dc-3b73-ba1d-72fd6ba38ebe@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3b484a1a-e6dc-3b73-ba1d-72fd6ba38ebe@amd.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 00:46:05 -0700 (PDT) On Thu, Oct 12, 2023 at 10:10:43AM +0530, Nikunj A. Dadhania wrote: > Ard had added the library specifically for this use case, this was the first > discussion thread: https://lore.kernel.org/all/c6fb9b25-a4b6-2e4a-2dd1-63adda055a49@amd.com/ > > Should I add the above link instead ? Please read up on what a Link: tag is used for. > static inline unsigned int get_ctx_authsize(struct snp_guest_dev *snp_dev) > { > return snp_dev->ctx->authsize; > } Or simply not use a one-liner function at all. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette