Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6254108rwi; Tue, 18 Oct 2022 09:59:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yZa29OUPKLs4w6J42NBG3fsw6pkkcIHTMLhHk4uTVO8rrQKyxmQTINs03dsFmQC4LX6PB X-Received: by 2002:a05:6402:34ce:b0:45d:14c9:c522 with SMTP id w14-20020a05640234ce00b0045d14c9c522mr3485176edc.160.1666112356904; Tue, 18 Oct 2022 09:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666112356; cv=none; d=google.com; s=arc-20160816; b=eFtiOIRPL36xQK0a+OwhQTMvy4WOhJNr7uivjnGb6wnSvLe4lldDrHlueYWgDCgJME +okxb/TrfhUeVdck/XjddnUEmQG/2EN5OuTjjEC1nCzq5gfVS7+2aYJSEYOh+Hw3ojJu GXoI+W5vDRcDhsJyWUyEJyPxKMhCF3k1TIc82nAMyJM7kcSstWJT84oy3EVeupkpZy4B HXp6CVtb8aDzSkz6OysI1SVfD6yIkm38g/Xo966da+qaFCrvBoMNS7NgSqQ/mZUZ+OXV 0548wE866aIkFAtAshui8hfy9sXXpnP24qwPHuRkpXGb+HMhMtbTbKordwyqhUZ6oAA7 K1ew== 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=MzvQBJdkcDIYDd+OfMrFmk39apicV8PtEEGy7jmzxjU=; b=Cj8wfiqQx7lYUbxy7vjzd2VNgYTr2KnI6aSyxgcr+WRsVl92Tw/Hwloy8T1212MzAr rw5NELG5dlskYjdPaJeSAQgfzVRiJqY77dXV8sN0r3QOg0Wpvwxo8Nlm8KOWKcWGWwEx AvTocvlE8ZF86bTJqoHXNu6CVL7H+s1YgiD0roWgLLSHytYOQoSLBaysp4ZYxEhcK5Ra vzaJP4QMqDbayFfVEjAJc+gl7xqGNkxFMh/y+gBfP0uYgimuS8z6oWSdjxFw3P8yk0cn NJQXD1Eeu6mbNgsZGlvF00X9q96y3aGHgbzlmWIc2us3IO5yzRTDau9URPLJzaPn2/hZ n9lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bOocASXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 eb11-20020a0564020d0b00b0045d189ac60esi13531159edb.401.2022.10.18.09.58.49; Tue, 18 Oct 2022 09:59:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=bOocASXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229660AbiJRQVD (ORCPT + 99 others); Tue, 18 Oct 2022 12:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiJRQU7 (ORCPT ); Tue, 18 Oct 2022 12:20:59 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADA29A3F58 for ; Tue, 18 Oct 2022 09:20:58 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id y14so33483542ejd.9 for ; Tue, 18 Oct 2022 09:20:58 -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:subject:date:message-id:reply-to; bh=MzvQBJdkcDIYDd+OfMrFmk39apicV8PtEEGy7jmzxjU=; b=bOocASXc0vmOiyCGAuVKd+CFpXVrpxLO+ctGA4ZYCkz5L9EH9pWuRQ69uCSRIOvRBa ozmkbjbCC5Zwm5Wj7FrNRgw1cRed3ys+6A7Ovm4TilVhK9N00NKt0xU/M4xTHyakrS5j h1gQQe/oz9T1Wz0RRD9UJ6yzmAk8AZlDIQVySXuIlyUVjYenkire49NliuRKV3VCbENE cr3QT3ioHcPzU3TanppmxJRCUkk5GX+fpqiKLCL6sZ8lJMsLnL0comcuO7Qv/uBRuObM cMStOZFJKs0cL9KtAd5prqA8Za1l/Oe3Ekror1cnVmrm/JD7HZw4zAlDzuccTm8yIiBP XFnw== 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:subject:date:message-id :reply-to; bh=MzvQBJdkcDIYDd+OfMrFmk39apicV8PtEEGy7jmzxjU=; b=Lmvg/qwvzHSughJWGSlKL3sZJmaJIBOr7gHJ5L/OeuT9HZkonKwsVIJQ1l+6B9jafu dP2olXKcGovx2lrvVf5fmEYRuutx/fygGBpcLE50uentQR0Tj4ZujdC3dzylRuz8MTPI kgPZSWN9bwRAVD3HvS47+3No6s85odo/iV8+MIMk/39Z0p8V1eSOEvfZyWiMD8rrbFUQ +ErnJ5xv/aa8MqkfM8N/cNO2ShWkDFKyQO9R6U/Ide03feJFdjU5yUSL3LmrWZZqQpB9 CRUVN47EZTGqsrttE5vy/Du4N2wfIa1+PUusUgR+Vv8oHO/FfhRd/ORfsQYl/5DoZJUd aR4Q== X-Gm-Message-State: ACrzQf0BXDXRphBoAuPVHHhN/Hn3uT4Lv5sHWX4m9D8GYB9lrFu79W5b Q9L4gIf3L7ylCzf+MppIiPSMT2k4Kb8lDGipPhmK0w== X-Received: by 2002:a17:907:628f:b0:72f:58fc:3815 with SMTP id nd15-20020a170907628f00b0072f58fc3815mr3136905ejc.719.1666110057245; Tue, 18 Oct 2022 09:20:57 -0700 (PDT) MIME-Version: 1.0 References: <20221013160040.2858732-1-dionnaglaze@google.com> <20221013160040.2858732-3-dionnaglaze@google.com> In-Reply-To: From: Dionna Amalie Glaze Date: Tue, 18 Oct 2022 09:20:46 -0700 Message-ID: Subject: Re: [PATCH 2/2] virt/coco/sev-guest: interpret VMM errors from guest request To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Paolo Bonzini , Joerg Roedel , Peter Gonda , Thomas Gleixner , Dave Hansen 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, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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-kernel@vger.kernel.org > > The GHCB spec has to be OS agnostic, so in the specification I would be > adding a value of 16 so that this matches. Not sure we don't want to just > use 2. We might be able to say the VMM error codes will follow the POSIX > standard, but then the currently defined value of 1 doesn't quite match an > EPERM. > > Thoughts? > I also thought it was a bit weird. Let's use 2. I'll send a v2. -- -Dionna Glaze, PhD (she/her)