Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp78809pxb; Wed, 6 Apr 2022 22:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwREt16W1WBoOpBjbg7MyYNnSAX1VCI+JuBwUpPLwBaKtz8hLN0Rno+AQo8CUB+28W/uWLH X-Received: by 2002:a17:902:e5c6:b0:155:ceb9:3706 with SMTP id u6-20020a170902e5c600b00155ceb93706mr12244406plf.35.1649310667179; Wed, 06 Apr 2022 22:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649310667; cv=none; d=google.com; s=arc-20160816; b=FHgrXTiXKTIfxk93OClmGdHymtzR70k3UdsYblIeDXSfOlmaxDXbmtLly8TEO/fUYQ YmTqoZBZ7cJBeQwY+Qh/Z6I+mvdo0IE0sayM1ic828TMaTYjP0sg/v6mgVtMUbU/h3Nf 7dtSaICXphcyHlhL+DvkRurnpCM449D/Y5p5HHZEixPNg40NB0RnYTeZMKVm0qRbggqe C4EwZ2buAZbObiF7fCbOFhz2VbFYlPRWSCXA84NtJ16EuPhVioPQolIqM1nZhJ/D6tq2 VUspLwvDxT+m4CXwwqP5+5QVXrrxCh0O8HFfUoHJDPPa4XVLtOu//cKz6cTIkGXVk3Ed UgJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=y8SeU3wIhBoeYg7O06WKEKrA4HPJDtvr9Gis/MAZTmI=; b=Ifd38WWK7/wVQHgv4Hv/Q+g/HeBxEFjO3Vil5lXEa3LuIjl1/7YElVwJzewhZsmUfN 7r38sJrzdpaSuPuU9BeROanj/LSLbUV26vhN7TtzZp1fXB5s0vYdAzMCRES80qPBdrGJ 1CZ70zvpX25Ue06uZPjCKXiDX6mbIs7Fp9DOPt2ppvZRPFUZ8Kx15iOOdvUobnkg9J3q ICkzy1AS8FyQSrbFpVgHhdDKDg2QYTl0e4C/lQa0AE1pWQ/elMZzzt/JI/a86wknYUZQ AhyTYRfamfLuhLwmjrG1IerpoeFZOra3YFiZmUQ3tmpKI83H627Xoos6Mio0vZz3FRRZ qFHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MLzO5I0I; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=2D2fm0lx; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00150f00b004f70dcc690csi19485757pfu.1.2022.04.06.22.50.29; Wed, 06 Apr 2022 22:51:07 -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=@linutronix.de header.s=2020 header.b=MLzO5I0I; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=2D2fm0lx; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236570AbiDFVkx (ORCPT + 99 others); Wed, 6 Apr 2022 17:40:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238805AbiDFVjL (ORCPT ); Wed, 6 Apr 2022 17:39:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B44A41CA; Wed, 6 Apr 2022 14:19:13 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649279951; 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: in-reply-to:in-reply-to:references:references; bh=y8SeU3wIhBoeYg7O06WKEKrA4HPJDtvr9Gis/MAZTmI=; b=MLzO5I0IR0N1SxXnmGyWHwGV2iWkw6A9eb3tTTrbkGMIxlRgqU8Po7woPcdBYUuDoHEKEr 92f+6YsWblCo1mKaliU8gQwfP35xrK3myi5DCY3W7jaeceJ35gA7WieL7KebeVOi/+5lKw niVGpJlYrViWa3+rb72yomVxAZrPl6TyrpN5cndq5lQXD5etRJ5JQ0VRDINI1p1A4ohAE2 AlMqDX1wseUo+JKcg5mz2fDxlVikZYfdYCcZSRWKtL14Qvh7yFzd2n4F2ZZpfL36I6IzvQ akbIf/DNJ/QsmWTZ+XPflGdo93X6vDZu90BF0a5A/NHY0R15rxV+kviTjACo9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649279951; 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: in-reply-to:in-reply-to:references:references; bh=y8SeU3wIhBoeYg7O06WKEKrA4HPJDtvr9Gis/MAZTmI=; b=2D2fm0lxQUIYq6XYbxZsgZiUd7zv3McBsk8mNlzCW6WXEAoZN85C2NJ9ovtskLZgmxGd7x JFchuSQLhASDCnDQ== To: Brijesh Singh , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org Cc: Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Borislav Petkov , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , "Dr . David Alan Gilbert" , brijesh.ksingh@gmail.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, Brijesh Singh Subject: Re: [PATCH v12 29/46] x86/boot: Add Confidential Computing type to setup_data In-Reply-To: <20220307213356.2797205-30-brijesh.singh@amd.com> References: <20220307213356.2797205-1-brijesh.singh@amd.com> <20220307213356.2797205-30-brijesh.singh@amd.com> Date: Wed, 06 Apr 2022 23:19:10 +0200 Message-ID: <87v8vlzz8x.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Mar 07 2022 at 15:33, Brijesh Singh wrote: > > +/* > + * AMD SEV Confidential computing blob structure. The structure is > + * defined in OVMF UEFI firmware header: > + * https://github.com/tianocore/edk2/blob/master/OvmfPkg/Include/Guid/ConfidentialComputingSevSnpBlob.h > + */ > +#define CC_BLOB_SEV_HDR_MAGIC 0x45444d41 > +struct cc_blob_sev_info { > + u32 magic; > + u16 version; > + u16 reserved; > + u64 secrets_phys; > + u32 secrets_len; > + u32 rsvd1; > + u64 cpuid_phys; > + u32 cpuid_len; > + u32 rsvd2; > +}; Shouldn't this be packed? Thanks, tglx