From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933340AbdEOQv6 (ORCPT ); Mon, 15 May 2017 12:51:58 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44123 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760080AbdEOQvy (ORCPT ); Mon, 15 May 2017 12:51:54 -0400 From: Stefan Berger To: tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, jarkko.sakkinen@linux.intel.com Cc: jgunthorpe@obsidianresearch.com, linux-kernel@vger.kernel.org, Stefan Berger Subject: [PATCH v5 0/2] Extend the vTPM proxy driver to pass locality Date: Mon, 15 May 2017 12:51:43 -0400 X-Mailer: git-send-email 2.5.5 X-TM-AS-GCONF: 00 x-cbid: 17051516-0024-0000-0000-0000026F0234 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007066; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000212; SDB=6.00860861; UDB=6.00426914; IPR=6.00640525; BA=6.00005350; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015465; XFM=3.00000015; UTC=2017-05-15 16:51:52 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17051516-0025-0000-0000-00004401772B Message-Id: <1494867105-30722-1-git-send-email-stefanb@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-15_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705150163 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this series of patches is to enable the passing of the locality a command is executing in to a recipient, i.e., TPM emulator. To enable this we introduce vendor-specific TPM commands for TPM 1.2 and TPM 2 that the driver sends to the TPM emulator. v4->v5: - introduce TPM_TRANSMIT_RAW to be able to call tpm_transmit without recursing into requesting the locality. v3->v4: - addressed Jarkko's comments: largely a rewrite of the patches v2->v3: - addressed Jarkko's comments v1->v2: - fixed return value from function in patch 3/3 Stefan Berger (2): tpm: Introduce flag TPM_TRANSMIT_RAW tpm: vtpm_proxy: Implement request_locality function. drivers/char/tpm/tpm-interface.c | 4 +++- drivers/char/tpm/tpm.h | 1 + drivers/char/tpm/tpm_vtpm_proxy.c | 36 ++++++++++++++++++++++++++++++++++++ include/uapi/linux/vtpm_proxy.h | 4 ++++ 4 files changed, 44 insertions(+), 1 deletion(-) -- 2.4.3