From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fuchs, Andreas" Subject: Re: Question on Linux TSS architecture design (kernel vs. user space access) Date: Mon, 4 Jan 2016 16:07:41 +0000 Message-ID: <9F48E1A823B03B4790B7E6E69430724DA5877E69@EXCH2010B.sit.fraunhofer.de> References: <201512171523.tBHFNlJ6013434@d03av03.boulder.ibm.com> <9F48E1A823B03B4790B7E6E69430724DA58648F1@EXCH2010A.sit.fraunhofer.de> <201512171620.tBHGK3GE030569@d03av04.boulder.ibm.com> <9F48E1A823B03B4790B7E6E69430724DA586493C@EXCH2010A.sit.fraunhofer.de> <20151218105148.GA12882@intel.com> <20151218105323.GB12882@intel.com> <20151218114131.GA3287@intel.com> ,<20151222065917.GB7867@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20151222065917.GB7867-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Jarkko Sakkinen , Ken Goldman Cc: "tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" List-Id: tpmdd-devel@lists.sourceforge.net > > > > If the community won't accept the code under any conditions, tell us > > now. We'll fall back on the user space resource manager, the limited > > resource manager in the kernel, and all the hacks required to have them > > work together. > > I'm all for the idea but I'd like to discuss more about constraints and > corner cases and in the end of the day would rather read code than > email (even big pile of code). > > One of the corner cases are vendor specific commands. I raised that but > it was ignored in this discussion. > > Now that I looked at TCG document it does not give any recommendation how > they should be managed: > > http://www.trustedcomputinggroup.org/resources/tss_tab_and_resource_manager I'll try to remeber this point for the next iteration... IMHO, it should check the number of handles in the handle-area via the TPM2_GetCapability() call. If a vendor is ignorant enough to put a handle into the parameter-section, there is nothing we can do besides some quirks once we recognize them... But this will be the same for all OSes... Cheers, Andreas ------------------------------------------------------------------------------