From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754576AbdEDRdz (ORCPT ); Thu, 4 May 2017 13:33:55 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55233 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753786AbdEDRdr (ORCPT ); Thu, 4 May 2017 13:33:47 -0400 Subject: Re: [PATCH v3 1/3] tpm: vtpm_proxy: Implement new ioctl to get supported flags To: Jason Gunthorpe References: <1493909787-1848-1-git-send-email-stefanb@linux.vnet.ibm.com> <1493909787-1848-2-git-send-email-stefanb@linux.vnet.ibm.com> <20170504153416.GA15930@obsidianresearch.com> <56703d75-b238-0bad-386a-5b6963e250a1@linux.vnet.ibm.com> <20170504172042.GA19932@obsidianresearch.com> <20170504173130.GA20449@obsidianresearch.com> Cc: tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, jarkko.sakkinen@linux.intel.com, linux-kernel@vger.kernel.org From: Stefan Berger Date: Thu, 4 May 2017 13:33:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170504173130.GA20449@obsidianresearch.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17050417-0020-0000-0000-00000BDFF73C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007021; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000209; SDB=6.00856225; UDB=6.00423843; IPR=6.00635389; BA=6.00005326; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015306; XFM=3.00000014; UTC=2017-05-04 17:33:44 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17050417-0021-0000-0000-00005C2B86AC Message-Id: <08065914-2b96-ca1d-2fe0-344472ed9691@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-04_11:,, 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-1705040260 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/04/2017 01:31 PM, Jason Gunthorpe wrote: > On Thu, May 04, 2017 at 01:28:17PM -0400, Stefan Berger wrote: > >>> So allowing request_locality to fail from userspace seems reasonable. >> What's the best interface to use for this ? > If locality support is enabled then send a request locality packet to > userspace and block until return, just like command execution? We would have to invent a command for that...