From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Goldman Subject: Re: [PATCH v3 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks Date: Fri, 13 Jan 2017 15:19:59 -0500 Message-ID: References: <1484240290-4306-1-git-send-email-nayna@linux.vnet.ibm.com> <1484240290-4306-3-git-send-email-nayna@linux.vnet.ibm.com> <20170112182044.hehe5d5fblecejwo@intel.com> <58787E47.3010908@linux.vnet.ibm.com> <20170113164315.kxbdhchoi64jy44p@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170113164315.kxbdhchoi64jy44p-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net On 1/13/2017 11:43 AM, Jarkko Sakkinen wrote: >>>> +struct tpml_digest_values { >>>> + u32 count; >>>> + struct tpmt_ha digests[TPM2_ACTIVE_PCR_BANKS]; >>>> +} __packed; >>> >>> Please remove this structure. >> >> Sorry Jarkko, I didn't understand this comment. >> Why do we want to remove this structure. > > Well it is only used to pass two parameters. Might it be good in general to reuse TPM Part 2 structures? For someone familiar with the TPM spec, it could make reading the device driver code easier. ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi