Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1027632pxb; Thu, 9 Sep 2021 18:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjkRRqFiWZekPD0xxQkHXvMXj40UE6DI8eL4ORYj6FOwzWcgPAX7sBwZwAqDnal99oeXO0 X-Received: by 2002:a5e:a913:: with SMTP id c19mr4895208iod.31.1631237067200; Thu, 09 Sep 2021 18:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631237067; cv=none; d=google.com; s=arc-20160816; b=P39w/hcRMm5k15E3YTw+MbPlMIrlGmvBglD5xq10CgGsYUo0VbSiFb3ygExVhf5Fz7 xSxYohF5I7yFve8HiwjTPE+GnIApFJeR+PZk2Jj0EN1afw5gJAF8Lp1xb5qQ1/lCIfG/ me8L28JpqpUArXiwYw+W700NMYSBRtC4Nlm9Htitd/eH7Z8N8isCRPC/PJhtXP6ozN61 88WKFOOssYsmljAxIge4Zv//eHkKU1ygaCaYpGzwFbE3LhRfkVqv5ctHVCcz6C5Jsaef 9G6Ll0MiaXGJl0oc7UMuQUoaWR/Oa940wlVMVDuM52x2FGv0o1dWkVmDngokDy7+3ls7 xT9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OAp385IrRyQM0bf2CTn8m6HsT3G2HXxxQxD9bmiIJg4=; b=UNwnLcyYswxvWslOokmXCji9K4iYidyw46R1V/mY3K8FJXka5f5G3OhOHRVxPiXzGQ xwUSAdObIywLsCIcNUe69FF8weVeCmCt4UW0B5T5Q7LjO6JvV0hmb6Y/qs8Bt5RwfDRs dtX96L2tG2P+eGCE0RxyFTT7xcaZ3/2ENIT16QBhfa8wRbogftpiFJrYPSWGtUfnLQZp BNrVFzLrgNyxV3FJLVqNydY8XTofgvJEg0N+O/sB6N4/Pwvm1Nx1KQWCppWgIY7kEfKz Ag4uTZHxm0ftY8fIkl3DmnnbSCEejDFa6pk2EyxlyavShF28tq3DTG1x1f6375yduRoV VyHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lXeBnpzg; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si3391115jac.26.2021.09.09.18.24.07; Thu, 09 Sep 2021 18:24:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lXeBnpzg; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbhIJBZF (ORCPT + 99 others); Thu, 9 Sep 2021 21:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234814AbhIJBY4 (ORCPT ); Thu, 9 Sep 2021 21:24:56 -0400 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DFCC0613DE for ; Thu, 9 Sep 2021 18:23:40 -0700 (PDT) Received: by mail-ot1-x330.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so146192otq.7 for ; Thu, 09 Sep 2021 18:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OAp385IrRyQM0bf2CTn8m6HsT3G2HXxxQxD9bmiIJg4=; b=lXeBnpzgLkHZ7Nnp7RalkiuqX/N3/tdJjiWv7a9ZE7Axa5+ZrA3mAYeZgLrWduclrI Guw2B2fqM+vDktr5tDzNIhkEg4yT6zPys7ac2Sdn00lr0llJYcAY+TDMt2uMWGU1zJJE 3jwZpaUwHphGF5I/gOIPUVz1LIItmTrpAgR86qUhOAjXIGY0QiGzbRgl6s93N8QLrLnD 2wM59yaEtvkBh5kjslfdytuqhnlhrxu79FLJj0zQfLHYyZffKlfq1TNp3pP8K/JUB3k5 3THEZ1kQZ/DPJMWlHjkuRpJq59MFouREYyxoEhXvq6izqXs4YmEcVTTxCyyfkReM6pHT 1TsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OAp385IrRyQM0bf2CTn8m6HsT3G2HXxxQxD9bmiIJg4=; b=Dh4T/nRDybzyHNAZ1iZ9dDjfvnrYQUcJpGMxrrE4/KvCyHxj7opfsg0XPIQr6Ix8Ki mCrgzecv5lxZJL15FTQUsMF3n4A5hsxqHHRhT35OFOsciWbAcZqRRcoKt0D4dKGQmoMt uWwqdpxNGusOhMxF+CavWcilp2IutclUPrNMQ975ZGIcP2LZBrcg0Y1gT/LZ2GqEsdVL g4402+wTXd8Qd14c/bnvkJxUoiDEoDRiivYTED4mwl1pkkamGFgECvsYTkdSxMQjop3m rzIRxits89OeLoQpVC8d9A/4WfahgrOdXQv0OapIeZ50qSJPZ72kTBprVXuhF8rf68TK a7hA== X-Gm-Message-State: AOAM530BGBduxkypbVpeT7os1UvhjN7zivqU7Ypt+5snUov+V+W68zAf TxG0F0uPPI5gtmSIrIlVCYOh/54+EB6KoujiR9S7+w== X-Received: by 2002:a05:6830:349c:: with SMTP id c28mr2502271otu.35.1631237019961; Thu, 09 Sep 2021 18:23:39 -0700 (PDT) MIME-Version: 1.0 References: <20210818053908.1907051-1-mizhang@google.com> <20210818053908.1907051-4-mizhang@google.com> <8421f104-34e8-cc68-1066-be95254af625@amd.com> <48af420f-20e3-719a-cf5c-e651a176e7c2@amd.com> In-Reply-To: From: Marc Orr Date: Thu, 9 Sep 2021 18:23:29 -0700 Message-ID: Subject: Re: [PATCH v2 3/4] KVM: SVM: move sev_bind_asid to psp To: Mingwei Zhang Cc: Brijesh Singh , Sean Christopherson , Paolo Bonzini , Tom Lendacky , John Allen , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm , linux-crypto@vger.kernel.org, LKML , Alper Gun , Borislav Petkov , David Rienjes , Peter Gonda , Vipin Sharma Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 9, 2021 at 6:18 PM Mingwei Zhang wrote: > > > I believe once we are done with it, will have 5 functions that will need > > >=8 arguments. I don't know if its acceptable. > > > > > In addition, having to construct each sev_data_* structure in KVM code > > > is also a pain and consumes a lot of irrelevant lines as well. > > > > > > > Maybe I am missing something, aren't those lines will be moved from KVM > > to PSP driver? > > > > I am in full support for restructuring, but lets look at full set of PSP > > APIs before making the final decision. > > > > thanks > > > > Oh, sorry for the confusion. I think the current feedback I got is > that my restructuring patchset was blocked due to the fact that it is > a partial one. So, if this patchset got checked in, then the psp-sev.h > will have two types of APIs: ones that use sev_data_* structure and > ones that do not. So one of the worries is that this would make the > situation even worse. > > So that's why I am thinking that maybe it is fine to just avoid using > sev_data_* for all PSP functions exposed to KVM? I use the number of > arguments as the justification. But that might not be a good one. > > In anycase, I will not rush into any code change before we reach a consensus. Isn't the first patch in this patch set a straight-forward bug fix :-)? Assuming others agree, I'd suggest to re-send that one out as a single patch on its own, so we can get it merged while the rest of this patch set works its way through the process.