Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6216814rwb; Mon, 5 Dec 2022 09:17:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hINHYOVEx4GXxZAz6IpQfIpqtdfPoM3PWiUqRmVikX7s7LnD+cNRoORT9a7KdpD6cj4IC X-Received: by 2002:a17:906:e87:b0:78d:b88f:1548 with SMTP id p7-20020a1709060e8700b0078db88f1548mr73083698ejf.221.1670260626363; Mon, 05 Dec 2022 09:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670260626; cv=none; d=google.com; s=arc-20160816; b=SCHTDht8XFxURdgPQpjQmkSnOepy3hnPAcawv/VFhlQjHIlk5gWzcX2iijsdg9QTkV dN6w+ri8p8iewd0QMyrbRAFQQzAU0Hannzx34dHNlcW5tAceVt7XhmicXQAzdHNmGYti laj5rt8enFu8kKVfzPL6RR3hkTUKEzI2fNI65Mfs65aH2tEQss6EuS0PnLTFkQAkkWcK EhKaQOxEq1kHV5EEdjtpew/CEV3hmmdcYre8UhBMoog+Txg4sbrNvu/YJqSDtxpm6b1t jmOGVqycEnBaObMO9BBjvZ2zgF0qwdjlYILXVaBk61owohDAUSYv2AMCqRYPVh5roj9n uBwg== 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=OWySjEls0A0JPnCrAeWGbZQ7X3VTy9vDof3TMx9kHEY=; b=0uP0ZiR5AkRbPAVo2we0uB2IK1efkNcWO3aJ3kplJLy+Dq19bTCAMUQV4FWrEQzPh8 7+PRt/1qZCpuhkBToEAG5sCEwJLARChNdfZAqoDeUrXSgnJakhZLWm0QeHv2O67iBh1A /ZekRwQye8uBRcrNVOWLbvJfqzftp8+lUksWGgyBbKgHSbJbmPFbM0z06VSqF/gF0t2w POvEsimFBg+j3itJgxcw6ptQGm7ttVzdtT5FLFYNbfqZIzO6FEAySAcefBhTmEnszNj3 FnaLWC0K7MqGsh57nJdUS416ViBdHZO0bgjfygVdHYjGnSn6uUf1jwRhONE9vrdgcIad mOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=e8GtFL74; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go7-20020a1709070d8700b007adcee4e54asi957101ejc.408.2022.12.05.09.16.43; Mon, 05 Dec 2022 09:17:06 -0800 (PST) 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=@alien8.de header.s=dkim header.b=e8GtFL74; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232537AbiLEQgb (ORCPT + 81 others); Mon, 5 Dec 2022 11:36:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232611AbiLEQf7 (ORCPT ); Mon, 5 Dec 2022 11:35:59 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2218B20BE9 for ; Mon, 5 Dec 2022 08:34:44 -0800 (PST) Received: from zn.tnic (p200300ea9733e72f329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e72f:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 881861EC0674; Mon, 5 Dec 2022 17:34:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1670258082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=OWySjEls0A0JPnCrAeWGbZQ7X3VTy9vDof3TMx9kHEY=; b=e8GtFL74wSJxh4Vv+47mv6GenHmzZQ7umuQKuNjFCDW4XxGA7ViK9lOJ5YMU05Ao0Dbd8S sL+k71MS/MENybjP49Acnnkszpo+BJJ9PgRCPFs86NPvG4/VAb+9mreNtpoMT03OUq0g3B 9b7q78V9VoxQjqE9y1occuFOFpQzwiA= Date: Mon, 5 Dec 2022 17:34:42 +0100 From: Borislav Petkov To: Dionna Glaze Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Tom Lendacky , Paolo Bonzini , Joerg Roedel , Peter Gonda , Thomas Gleixner , Dave Hansen , Ingo Molnar , "H. Peter Anvin" , Venu Busireddy , Michael Roth , "Kirill A. Shutemov" , Michael Sterritt Subject: Re: [PATCH v8 2/4] x86/sev: Change snp_guest_issue_request's fw_err Message-ID: References: <20221104230040.2346862-1-dionnaglaze@google.com> <20221104230040.2346862-3-dionnaglaze@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221104230040.2346862-3-dionnaglaze@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 On Fri, Nov 04, 2022 at 11:00:38PM +0000, Dionna Glaze wrote: > The GHCB specification declares that the firmware error value for a > guest request will be stored in the lower 32 bits of EXIT_INFO_2. > The upper 32 bits are for the VMM's own error code. The fw_err argument > is thus a misnomer, and callers will need access to all 64 bits. > > The type of unsigned long also causes problems, since sw_exit_info2 is > u64 (unsigned long long) vs the argument's previous unsigned long*. > The signature change requires the follow-up change to > drivers/virt/coco/sev-guest to use the new expected type in order to > compile. > > The firmware might not even be called, so we bookend the call with the Please use passive voice in your commit message: no "we" or "I", etc, and describe your changes in imperative mood. Personal pronouns are ambiguous in text, especially with so many parties/companies/etc developing the kernel so let's avoid them please. Otherwise, LGTM. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette