Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp987182rwd; Wed, 7 Jun 2023 09:23:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6z7K2MI9K2ANI7NFuJ2P/mXIq9gC15xZL6t72PKgnbXo13QNPbQ6ERtJuWMX7lwSAir5pg X-Received: by 2002:a05:6a00:88c:b0:657:bdf1:cce1 with SMTP id q12-20020a056a00088c00b00657bdf1cce1mr7898932pfj.25.1686155018662; Wed, 07 Jun 2023 09:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686155018; cv=none; d=google.com; s=arc-20160816; b=bsd8rmrIRVD+KfD0SqBnqiWWj0+G5mnqHAvCmgGZAku64S7/GNxoJubDWKsNT+G7aV iUMteiHXYEaRaIcRtSJzm+5e8Tfa5oo4qh7RnKDqMQwxmXZR0AUvg9ADIgXosui/J9Ed h+jVC/2hZkioNbd1IM/KpapSBF/0na3XgJhQJY8on5KSIyJvQ8EtvARDSyzonQQuQPmW vyqmsq4cR9UmsmUF+ZQ/ooVpPzT8XeHnSRm15X9fU4pRK1jNPXvgeBM7mj+/gNO6p3Tx jyo9mZsiA4wBZCpy1nP2fy6mfZbKhieIdFxgq3g5FpYsQEY56+8gEJrJ9aNYPzHz4r/l MI4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EkF8gNs8X3mlhwvpm7rrk4SOWdt711l7J7ce8XNL8rg=; b=lmfOEUo76QKpxHndtasYle8SmLPX5QTB+nQ2/ueQ0n7mYoyJZhz1jQI/AKggcawpwu I35v32ZpoNkVvfDKOfNsVIGf9GaeWiKwZOsBzrqObyr7/o6CTn78TqlD6eSCm9qDE3Dj yGeuULwH3WLn9vvtq7UNT7oPuFipkik1K+1+dAMQbe82CD/R61NdOSehGkjFeflpw8SR CwMnsLcHam66+P26nAulEBXaUq6ICUkZqwsstvgXwIvZLOzd3yzIr8lFPglr1L9mn3H2 7oaveUkLGvXPzkKDNy3Aqy1u87HOk4t+Mxf49qfFwRwY+fRBWBLmATIpwhcg3YfFUIyN +8Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Wsc8cfUf; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020aa79789000000b006610cb64216si1164180pfp.13.2023.06.07.09.23.26; Wed, 07 Jun 2023 09:23:38 -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=@intel.com header.s=Intel header.b=Wsc8cfUf; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241449AbjFGP5V (ORCPT + 99 others); Wed, 7 Jun 2023 11:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240958AbjFGP5M (ORCPT ); Wed, 7 Jun 2023 11:57:12 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C571BEA; Wed, 7 Jun 2023 08:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686153431; x=1717689431; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4WSpnJiCcc25uako5vnysuv35mXObG2rTQvLgVdCHmc=; b=Wsc8cfUffaC+8gbkuNyME9z/7kPxfrbkiMuo8kaomjh5iBwZi/u9Xtkk QpDWcerSd+sEFFZvdJrIJhPdcjowETaGbJhK7ifnAUEGEQEuW9oIg3jbK u74blBWqmEVXyakqHObOrZ6yDmyRSyZD8ZZVUidabjsjtOsukfxj5GoAn JH2vBB8lwsag7woxWxK61bABCe/LEEvasIjlYbbiu8odnxoQ3aZ5Buy7b P/cIfb8s7DNYKjRGquea/vIRHE5t/4XKgYgwK2QIdDr0MBeBRGncRGZXQ KMqKRSBtpE30Xtk9dYh222BfSToyV0Lu42YwOzElyVo5ZH/uay6XffcRB A==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="360360133" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="360360133" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 08:57:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="739335890" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="739335890" Received: from vsmyers-mobl2.amr.corp.intel.com (HELO [10.212.146.233]) ([10.212.146.233]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 08:57:09 -0700 Message-ID: Date: Wed, 7 Jun 2023 08:57:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v11 10/20] x86/virt/tdx: Add placeholder to construct TDMRs to cover all TDX memory regions Content-Language: en-US To: Kai Huang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: linux-mm@kvack.org, kirill.shutemov@linux.intel.com, tony.luck@intel.com, peterz@infradead.org, tglx@linutronix.de, seanjc@google.com, pbonzini@redhat.com, david@redhat.com, dan.j.williams@intel.com, rafael.j.wysocki@intel.com, ying.huang@intel.com, reinette.chatre@intel.com, len.brown@intel.com, ak@linux.intel.com, isaku.yamahata@intel.com, chao.gao@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, bagasdotme@gmail.com, sagis@google.com, imammedo@redhat.com References: From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 6/4/23 07:27, Kai Huang wrote: > +struct tdmr_info_list { > + void *tdmrs; /* Flexible array to hold 'tdmr_info's */ > + int nr_consumed_tdmrs; /* How many 'tdmr_info's are in use */ I'm looking back here after seeing the weird cast in the next patch. Why is this a void* instead of a _real_ type?