Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp232966pxv; Thu, 8 Jul 2021 19:47:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJR0+T40vJR9o5IjZGC3JbSC0/GN/d/Z4nwgbUBHqi1htTuUghz1xES0H1iakoE3bD1CeR X-Received: by 2002:a05:6602:2093:: with SMTP id a19mr19532753ioa.200.1625798827287; Thu, 08 Jul 2021 19:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625798827; cv=none; d=google.com; s=arc-20160816; b=oDJmqYtN+JZgq7UgZW1J5rnBERM2T1ZPxmkPOzvzMiIzAFixdTMpvPO/UQ+cRhrr7D dbn6Zx7l8458ym8eaDzbVsMtCfdJITqK1hrInwP5jex6NNinoLWxtWpwa22uuf/vz9IL qLCsgxxF921CVNd7tN61v0wzxLSyZ6w5+NRndPGf2Z73Lq2laDnIfmTjpKASqNRt4Dqo ZWSZeAlc2f3PzYe/nVskwrvIj9X8fhcZyBHMlGASXLNe0HlHg5IJGVECDWfbnZV272fq 185gm72G3bISqLbefTuKNf/Xy6mGeyCAMsTxFbFlNLajYuNbnANu0obm31RQLtChHYgb fszA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=5Z8d1dKlXkLD9Nzg6o5PkY6FOTq1blqWegY9QX4XQEM=; b=H3jpNA+LKvkleOv3LgXoGcwARo4rYI56CLQ2RhSAqyDIeBew+3Py7JpbwRzgwjpKIb E1Cv68xJaN/GJ/IdsfRPZqYyt8wYKMexP9ImulvKb7Q9leqDeiOSvDP474/GxSp5sV6d Ak0AzOhqBaUYG5VqBUhFUKfLPTUks5eLRm5Jf2/slVTPV2tqgOYhX8BqIrSrqqU4LvgF 9zh+R9SmITq/v/5L3JcdylVclKJufDOjvvyKE6rnY9blv4Y/gLqZGOx/qtSPWPd1sT53 N/U4h02furFLmYyDLCh1ztmcQ9OK3ZQd3y2SEsvDZZDjFgdbBYtdmTZteUj7O2lqTreE D0dA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si4485104jat.81.2021.07.08.19.45.34; Thu, 08 Jul 2021 19:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbhGICqZ (ORCPT + 99 others); Thu, 8 Jul 2021 22:46:25 -0400 Received: from mga01.intel.com ([192.55.52.88]:36767 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbhGICqZ (ORCPT ); Thu, 8 Jul 2021 22:46:25 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10039"; a="231399821" X-IronPort-AV: E=Sophos;i="5.84,225,1620716400"; d="scan'208";a="231399821" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 19:43:42 -0700 X-IronPort-AV: E=Sophos;i="5.84,225,1620716400"; d="scan'208";a="564861698" Received: from npujari-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.213.167.42]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 19:43:41 -0700 Subject: Re: [PATCH v2 5/6] platform/x86: intel_tdx_attest: Add TDX Guest attestation interface driver To: Dan Williams , Andi Kleen Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Hans de Goede , Mark Gross , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , platform-driver-x86@vger.kernel.org, bpf@vger.kernel.org, Netdev References: <20210707204249.3046665-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210707204249.3046665-6-sathyanarayanan.kuppuswamy@linux.intel.com> <24d8fd58-36c1-0e89-4142-28f29e2c434b@linux.intel.com> <4972fc1a-1ffb-2b6d-e764-471210df96a3@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <4b22be93-a401-6b96-48e1-18a71a6a17bc@linux.intel.com> Date: Thu, 8 Jul 2021 19:43:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/8/21 7:04 PM, Dan Williams wrote: > Ok, not my first choice for how to handle the allocation side of that, > but not broken. > > I'd still feel better if there was an actual data structure assigned > to file->private_data rather than using that 'void *' pointer directly > and casting throughout the driver. We can add a data structure if we have more member requirements. Currently we only need to pass the memory pointer. But after moving memory allocation to init code (even for vmap), we may not need to use this private pointer. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer