Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 907BEC433F5 for ; Thu, 6 Jan 2022 14:30:58 +0000 (UTC) Received: from localhost ([::1]:33058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5Tn7-0006kM-Kx for qemu-devel@archiver.kernel.org; Thu, 06 Jan 2022 09:30:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5TKs-0004Ht-Nf for qemu-devel@nongnu.org; Thu, 06 Jan 2022 09:01:47 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5TKp-0003oW-Oh for qemu-devel@nongnu.org; Thu, 06 Jan 2022 09:01:45 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 206DgDHV014278; Thu, 6 Jan 2022 14:01:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=2IlaSv3nIJ+Kwuk5hntqVZ/j+r4xhe7Mqq4ivpXhkAI=; b=YPIYLU48CkmOD5L0qGLNb2WRIiY0lk/7CIW4oPCDto4M+bTXf1BSd43AKVneEWxtN13P z5+u+f0pyEoZlaCDck4+cK2o3s+0HswlgRWGLbPpQi9t50Eo4Icl0Iv47TG+wsAV9Ybu M8vzpDanwOGGUF1ggbuAmycqryg5VSyaOiw3m1VOYLCU+knZLMHNpASMz+iKJUWT0MC8 hnHfUC5q0IUT6LdGDRzBDqz4JC+ON/eAAXtR3bgV6u/uf/+JHkhRWdMVBkgvPv6vUp4D dY9wwXVL4HCN1+0ARYZ4NHL/7RD+vZOLAzOmCzgneK3yP2XwuBdjuyBgL5Cqnf4FnyBG Ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3de1hj0ch7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jan 2022 14:01:40 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 206DwEw0018814; Thu, 6 Jan 2022 14:01:40 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 3de1hj0cgs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jan 2022 14:01:40 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 206Dv7Kv029073; Thu, 6 Jan 2022 14:01:39 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma03dal.us.ibm.com with ESMTP id 3ddmtkpvxd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jan 2022 14:01:39 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 206E1c4013500714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jan 2022 14:01:38 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0FD466E072; Thu, 6 Jan 2022 14:01:38 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 08D726E054; Thu, 6 Jan 2022 14:01:36 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 6 Jan 2022 14:01:36 +0000 (GMT) Message-ID: Date: Thu, 6 Jan 2022 09:01:36 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v5 2/3] acpi: tpm: Add missing device identification objects Content-Language: en-US To: "Michael S. Tsirkin" References: <20220104175806.872996-1-stefanb@linux.ibm.com> <20220104175806.872996-3-stefanb@linux.ibm.com> <20220106093636.7fc7755f@redhat.com> <6096f301-4c39-e39c-eb5f-9f7d22ba1260@linux.ibm.com> <20220106085502-mutt-send-email-mst@kernel.org> From: Stefan Berger In-Reply-To: <20220106085502-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: P3LVM7905o7D-PhO6iPpLJMo_AAkGOSW X-Proofpoint-ORIG-GUID: RWOPmRQpc9GyDlurIHEPLDGfCrh10R26 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-06_05,2022-01-06_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 adultscore=0 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2112160000 definitions=main-2201060099 Received-SPF: pass client-ip=148.163.156.1; envelope-from=stefanb@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.691, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ani Sinha , Igor Mammedov , Shannon Zhao , qemu-devel@nongnu.org, marcandre.lureau@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 1/6/22 08:56, Michael S. Tsirkin wrote: > On Thu, Jan 06, 2022 at 08:53:00AM -0500, Stefan Berger wrote: >> On 1/6/22 03:36, Igor Mammedov wrote: >>> On Tue, 4 Jan 2022 12:58:05 -0500 >>> Stefan Berger wrote: >>> >>>> Add missing TPM device identification objects _STR and _UID. They will >>>> appear as files 'description' and 'uid' under Linux sysfs. >>>> >>>> Following inspection of sysfs entries for hardware TPMs we chose >>>> uid '1'. >>> My guess would be that buy default (in case of missing UID), OSPM >>> will start enumerate from 0. So I think 0 is more safer choice >>> when it comes to compatibility. >>> >>> Can you smoke test TPM with Windows, and check if adding UID doesn't >>> break anything if VM actually uses TMP (though I'm not sure how to >>> check it on Windows, maybe install Windows 11 without this patch >>> and then see if it still boots pre-installed VM and nothing is broken >>> after this patch)? >>> >> I smoke tested it with the posted patches applied to v6.2.0 and started 3 >> VMs with it: >> >> - Linux shows uid = 1 and the description "TPM 2.0 Device" in sysfs >> >> - Win 10 and Win 11 tpm.msc tool are both showing that the TPM is 'ready for >> use' >> >>     Stefan >> > Just to make sure, what Igor was concerned about is issues like > we had with e.g. network devices, when changing UID makes > windows think it's a new device and lose configuration > created on old qemu on boot with a new qemu. > Not sure what can be configured with a TPM device though ... The VMs were all created on an old qemu and booted into the patched qemu. They hadn't seen the new ACPI entries before, for sure not when they were installed. >