Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2077345rwb; Fri, 5 Aug 2022 12:49:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4m8RsGW/DW9tMYABQcr40ytk9vKgIhHJsXNLnsZYduPlRVpByxD84QvSIpcdRxSuT8AWTE X-Received: by 2002:a17:906:58d5:b0:72f:2b21:eb20 with SMTP id e21-20020a17090658d500b0072f2b21eb20mr6528961ejs.508.1659728965932; Fri, 05 Aug 2022 12:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659728965; cv=none; d=google.com; s=arc-20160816; b=tMBSKH6ncr5olTSt5dCf5fdAOpikFACQs2wQb6lAFGcrzgn98yhYEGGoXul/FeKiHC e6JOOtbPLB1Hxad9cBv9oAbcdyNFcozUaQuHpio0FYwE8COfhHzVCZmTl5Pf/WbJdl+O IhfeQBYCheQiy9+JLjdkBKbqtuu1Sp7EFuPY2d+86n3TD47eULUMB08DExjj4U0A0mPE +bVaE1dbew7FKop59ThD+DqNFs3N3HpGeusDtU6e1sTh5y0Do/O2uSCfOhb6QShQJ0oO DvfG0NnyWbuuMqIjtvFZJPXgjy8AAcoFNDZXaw0MK73/yU1UcCjmo3pNeOczQXnvPP6U GYDQ== 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=nx9G9y1EjYBhqiHWUAKcBjnWHxsMiMBJ2QDIpjyrXWI=; b=C73JWQJdxh13SBKj8hS1QMsQ8WEUeQjqoaKIpLBbjeDR6OL7VQUpLvZFGSrhyC2jct U6yyhIcE04pA5p9FKoj+eSIi9yHdhMY3yoVNpt/SpbXIhI1tBZDHiILBY2mJDGWgRKxA Z28QQSIGlvvcwbPJz4+AenwZ+tw/q/r3IKSWXujXwWC+kp1fzAtgPqM1zdR7l1Uv8Trq 1Kxg51SHwyfRyzx2ot3vkxqqrRXv8HZyhUYfLIUQAZX3GbMk3JyJncIg/TTpGSu3zOyf uQKYoSbIPglx0HExB1d+eN3gjVvzvYCMux2F0WvTnXPkBxI4fb9P9E7nEKkx0uQTgBH+ MN8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C0Yb27TF; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020a056402414a00b0043bc6e71657si465559eda.91.2022.08.05.12.49.00; Fri, 05 Aug 2022 12:49:25 -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=@redhat.com header.s=mimecast20190719 header.b=C0Yb27TF; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237402AbiHETrv (ORCPT + 99 others); Fri, 5 Aug 2022 15:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbiHETru (ORCPT ); Fri, 5 Aug 2022 15:47:50 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 57112167DE for ; Fri, 5 Aug 2022 12:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659728859; 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=nx9G9y1EjYBhqiHWUAKcBjnWHxsMiMBJ2QDIpjyrXWI=; b=C0Yb27TFSMUOPLtwzPXXw7oKsI8QfUqLKKfDEJoIgShIG9JdvabzOrhCuEIOHsbkV1Cz6H flkykllaObgx+Z4EZnu9eoHu8V0I9FsWpcsRMGPxV+V/eWijpKuuK0BSap/eTB1um/T1iV XCywjjlc86WCGkM/L0bA33JhRyNzdWI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-158-tyOXrZumOb-4kzFDATKU-Q-1; Fri, 05 Aug 2022 15:47:37 -0400 X-MC-Unique: tyOXrZumOb-4kzFDATKU-Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F40A31C06EEC; Fri, 5 Aug 2022 19:47:33 +0000 (UTC) Received: from fedora (unknown [10.22.33.164]) by smtp.corp.redhat.com (Postfix) with SMTP id CBC3A2024CB6; Fri, 5 Aug 2022 19:47:29 +0000 (UTC) Date: Fri, 5 Aug 2022 16:47:28 -0300 From: Wander Lairson Costa To: Kuppuswamy Sathyanarayanan Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , Kai Huang , Isaku Yamahata , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 1/2] x86/tdx: Add TDX Guest attestation interface driver Message-ID: References: <20220804003323.1441376-1-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220804003323.1441376-1-sathyanarayanan.kuppuswamy@linux.intel.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Wed, Aug 03, 2022 at 05:33:22PM -0700, Kuppuswamy Sathyanarayanan wrote: > +/** > + * struct tdx_report_req: Get TDREPORT using REPORTDATA as input. > + * > + * @subtype : Subtype of TDREPORT (fixed as 0 by TDX Module > + * specification, but added a parameter to handle > + * future extension). > + * @reportdata : User-defined REPORTDATA to be included into > + * TDREPORT. Typically it can be some nonce > + * provided by attestation service, so the > + * generated TDREPORT can be uniquely verified. > + * @rpd_len : Length of the REPORTDATA (fixed as 64 bytes by > + * the TDX Module specification, but parameter is > + * added to handle future extension). > + * @tdreport : TDREPORT output from TDCALL[TDG.MR.REPORT]. > + * @tdr_len : Length of the TDREPORT (fixed as 1024 bytes by > + * the TDX Module specification, but a parameter > + * is added to accommodate future extension). > + * > + * Used in TDX_CMD_GET_REPORT IOCTL request. > + */ > +struct tdx_report_req { > + __u8 subtype; > + __u64 reportdata; > + __u32 rpd_len; > + __u64 tdreport; > + __u32 tdr_len; > +}; Any reason why reportdata and tdreport aren't "void *"? > +