Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5302086rwb; Mon, 8 Aug 2022 16:27:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR55QdDlumthjrA/dWTxJsDvgzUQhQ4etdFHn4mYaM0zsDEwQ+9FmjbcdyAKoJA3i0fkGmfM X-Received: by 2002:a17:907:1c24:b0:731:59f9:1b3f with SMTP id nc36-20020a1709071c2400b0073159f91b3fmr5144990ejc.595.1660001279233; Mon, 08 Aug 2022 16:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660001279; cv=none; d=google.com; s=arc-20160816; b=K+CQ7vfsWrVCR+6DsY33Z+Bg3yCJzMr7RMIhWpYee9x0FcDOgVMJte6muB5R1ECHGK yT3rUNWq5QEysPWI0WZkjdg+L48huFwuhQ2FQOfMQ92SrjDq/plEIAADrTSXnzVClyDB Ds/kZAUV7FXQ1lWD7gsKkN0WlHjB/gOu56V+BPY+A2VYzdZu8Uzr0JTvvNiVJ3y+Q17f pM16WqQRK/ax+LcVc5VFuPje8dfluw+21K6UA0bPFLTRgvKLYjN65IZGDPbmyZ2Gqctq 5zRzGEc6CN5MOKB6V/oUQ4aVrGyEwV2H7t4/48RSDRarXbEjwLvt6Za4BOVD9KBQ99vz /tpg== 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=73cKPFgN9gZ8ltMONiXdX091+tMrsz21e0W09IrrYVM=; b=XXMkmRQeqYHHtx7SYlL92mqnUrUH0Vaa3XN5VM5l6jZqG0qKdBPrVAFvFSeeJjRjI+ L3SF96GqaxXRwRdKq6oscODjJ6D7b2P8Zik4cEZ2hKUrBuGdYlspXXzxgjRR1+K9xFB/ EMMKpp7DPgQ7XbMT2jT6JH6i3rEBgEon3mcWPAW9IHWTOJiKfzugzuwnIkLkwFCepwTJ CIkVtbuYtdyQDEpSSO3Y3Dzqni45GgrsVDb048hDSADQ5iF3aQLL0kOyhLKC7dRUlRBk QrGubEuQSTgbt+EmOeV2rdGpgGODfDJLFO8veYvox3EepP1bP4qudjiVQV1M6KtvpnW5 vpaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="XD4epq/w"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a056402120b00b004406513be73si5923900edw.343.2022.08.08.16.27.23; Mon, 08 Aug 2022 16:27:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@google.com header.s=20210112 header.b="XD4epq/w"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229842AbiHHXZm (ORCPT + 99 others); Mon, 8 Aug 2022 19:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236078AbiHHXZh (ORCPT ); Mon, 8 Aug 2022 19:25:37 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7151611175 for ; Mon, 8 Aug 2022 16:25:35 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id j63so15922817ybb.13 for ; Mon, 08 Aug 2022 16:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=73cKPFgN9gZ8ltMONiXdX091+tMrsz21e0W09IrrYVM=; b=XD4epq/wDO2pmaef1oiInC2dvEJIqvjq3q43Jfyj+ci5MUe0R+m7gQ5gr1x+XrMC76 LwLhtdXIbgRaVYj9MQHPhkljoWaVUbOD+Rn2R/6VQJfsCEUnZFnf0jVXFjOKLFdW6lBI AQd3NhDC5HNC3/vyl8bHZJAkJILyum23NniPcQLdokRSRh3BOH9Pvf+6pzNo9iHp97GO k+JFH6u4VVeMcZD5etwHx3zffyFTqC6FwhBiOzN9Qi+PU0a55A/i9Qsq66IR5/bRPQl6 Wo8EHYyvtyS5q4HqsP0RoQyycONWLoK9J3yYPmOqKiFDyUUXf5a88zIoeXUvyeGRrLXP U/6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=73cKPFgN9gZ8ltMONiXdX091+tMrsz21e0W09IrrYVM=; b=erkHu2x75uZmwVXlTWB+RfkVhSaKDJeE5h4u3UTrNCwHyxa7QhgrxnlvK4GjQAl93J bxnMXkJsFeQnn7ripS4AVy5OeaOax8cKrF1ZAgkVRs3A/w7MQPqoZgQXP8/jOc2G+4ys 4WPAZYbp2dB84wR1HqwzwvdE7YNM0VCwx/hXDqL97PGkYzgXlxiBOadnzggZN3/T9mSw WxK2UsA10QNtxmA6YNU5eZoJqIPvPcf5xoAmG9WetHo4jiPfMD63hMJlZh+xG5aTFJIT WJpkPUK9FgmREKobKmwPgt6YfX1KKgwufxWrriQMeIddIbIowaywuh0rKNqnysjyO9Go jH5g== X-Gm-Message-State: ACgBeo13o+ecRnHvAS/P4JPCmv9NBo0CORtL4IShlXGivFVoZgD3EUiZ TbtH4VGICxGL3vWS/sPjey4c82eFtq460hLRvijdag== X-Received: by 2002:a05:6902:1021:b0:676:ed79:5733 with SMTP id x1-20020a056902102100b00676ed795733mr18366577ybt.509.1660001134604; Mon, 08 Aug 2022 16:25:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dionna Amalie Glaze Date: Mon, 8 Aug 2022 16:25:23 -0700 Message-ID: Subject: Re: [PATCH Part2 v6 17/49] crypto: ccp: Add the SNP_{SET,GET}_EXT_CONFIG command To: Tom Lendacky Cc: Jarkko Sakkinen , Ashish Kalra , "the arch/x86 maintainers" , LKML , "open list:X86 KVM CPUs" , linux-coco@lists.linux.dev, Linux Memory Management List , linux-crypto@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , hpa@zytor.com, Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , vkuznets@redhat.com, Jim Mattson , Andy Lutomirski , dave.hansen@linux.intel.com, slp@redhat.com, Peter Gonda , Peter Zijlstra , srinivas.pandruvada@linux.intel.com, David Rientjes , dovmurik@linux.ibm.com, tobin@ibm.com, Borislav Petkov , "Roth, Michael" , Vlastimil Babka , "Kirill A. Shutemov" , Andi Kleen , tony.luck@intel.com, Marc Orr , Kuppuswamy Sathyanarayanan , Alper Gun , dgilbert@redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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-crypto@vger.kernel.org > Would it be burden to supply all the certificates, both system and per-VM, > in this KVM call? On the SNP Extended Guest Request, the hypervisor could > just check if there is a per-VM blob and return that or else return the > system-wide blob (if present). > I think that's fine by me. We can use SNP_GET_EXT_CONFIG, merge in user space, and create an instance override with a KVM ioctl without touching ccp. -- -Dionna Glaze, PhD (she/her)