From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:ac2:4942:0:0:0:0:0 with SMTP id o2csp3147997lfi; Thu, 5 Mar 2020 09:05:06 -0800 (PST) X-Google-Smtp-Source: ADFU+vuMJaGzsbkyQ9CoGnnFbC00f42ICRt50PxNNoriLDz8Kx6YXTv1SPG//tu7xJK6TXCctgfu X-Received: by 2002:a37:a70c:: with SMTP id q12mr9288371qke.36.1583427906519; Thu, 05 Mar 2020 09:05:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583427906; cv=none; d=google.com; s=arc-20160816; b=hgJyQC0ymDm7dOh/q7WhrGqe/oaLuzBnRihAjlYyW5OVeeaHFzh9dsvfJuFoMAtGLT yVSJUB2ArV/feURH38vJksPWbsJjDz0cfdHPUE2A7Ki1OH3tenc633D1dVKpzxeYi1i3 ky3mGGWsi59n2+Kyi8gMj7CGm2Hx4QOnCbn/qit6CyHyhZJHh3aLEPCu6S0k4t7Kdkg3 jKW7+dgCTAuMHby+A0OjTMCgxAN94yitSpHdyjK9k2Xd36zeG7YZA7pVJYWKOISBck1a uIFBMOIV8ESoATrWRrRnjYurv1reIWpxK60SdGD536mrzo9Q/sQYk4qxRzwQj9GPDbyg NLgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ihSDbjWEY/23aUSasZkkqE3PIsszjWjdQaLKX0nSMsc=; b=Bzfm4BaIUhMiYlBg6T7tvPFe+gHtuk7mFVzxPyw7fBbA86x6PH+yVQEYlaakOMJHSk MQGAro45vKqmXRC6jupt1sz/tLehSegA0wiJRYdGms7mTfDWP5S9sMgNzxCfCwVyjOKM ckW2QkA8ikV9KKNIB/OgYF88/Vv2J5tyLs5UUWGJ9hL0IxivwpsfN2iRT2PX7mLzGR+v 3Vxz/gvMbfq1AECTrJ3QLXsvY8vJ0FVM0iNP3g3ZmTBm3WtJyOWp32wh/c/xdOes6G9L XQ1rXiJlM/QfXocWXehkA4pAAA1LpzLNX8/Qq/WXusml/oPWm+rCcEu7dhPTUQD1V2yb y++w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=DKfRbzSe; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a12si3184144qkn.155.2020.03.05.09.05.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Mar 2020 09:05:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=DKfRbzSe; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:53434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tvl-000134-PI for alex.bennee@linaro.org; Thu, 05 Mar 2020 12:05:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34765) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tjq-0005ef-PC for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:52:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9tjl-0007h1-Pw for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:52:46 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:21920 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j9tjl-0007gI-MR for qemu-devel@nongnu.org; Thu, 05 Mar 2020 11:52:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583427161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ihSDbjWEY/23aUSasZkkqE3PIsszjWjdQaLKX0nSMsc=; b=DKfRbzSeaGqJOUhxzJE6aaGLY49fsF/4VTiv5uB/3w5nFjXnq/VOTLO24tGLiF5XxvL2F1 Iv5xdlFqZ7fC8FrdqyvXA8LDzp9fEM5QlOmdf0SRk+0xAoFb2lrKOP2W/H8u7XhAGxooNi JCgQ/UxiQf5ICG69chrQCWhtTPN5sqU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-460-YxxJjCnOMHaCD7DrsYfO0Q-1; Thu, 05 Mar 2020 11:52:37 -0500 X-MC-Unique: YxxJjCnOMHaCD7DrsYfO0Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9756E8018C4; Thu, 5 Mar 2020 16:52:36 +0000 (UTC) Received: from laptop.redhat.com (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 414FD2719A; Thu, 5 Mar 2020 16:52:34 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, stefanb@linux.ibm.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org Subject: [PATCH v5 07/10] docs/specs/tpm: Document TPM_TIS sysbus device for ARM Date: Thu, 5 Mar 2020 17:51:46 +0100 Message-Id: <20200305165149.618-8-eric.auger@redhat.com> In-Reply-To: <20200305165149.618-1-eric.auger@redhat.com> References: <20200305165149.618-1-eric.auger@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, lersek@redhat.com, ardb@kernel.org, philmd@redhat.com Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: JeI3GxONyr4t Update the documentation with recent changes related to the sysbus TPM_TIS device addition and add the command line to be used with arm VIRT. Signed-off-by: Eric Auger Reviewed-by: Stefan Berger --- docs/specs/tpm.rst | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst index 2bdf637f55..da9eb39ca9 100644 --- a/docs/specs/tpm.rst +++ b/docs/specs/tpm.rst @@ -18,9 +18,15 @@ The TIS interface makes a memory mapped IO region in the= area 0xfed40000-0xfed44fff available to the guest operating system. =20 QEMU files related to TPM TIS interface: - - ``hw/tpm/tpm_tis.c`` + - ``hw/tpm/tpm_tis_common.c`` + - ``hw/tpm/tpm_tis_isa.c`` + - ``hw/tpm/tpm_tis_sysbus.c`` - ``hw/tpm/tpm_tis.h`` =20 +Both an ISA device and a sysbus device are available. The former is +used with pc/q35 machine while the latter can be instantiated in the +ARM virt machine. + CRB interface ------------- =20 @@ -325,6 +331,23 @@ In case a pSeries machine is emulated, use the followi= ng command line: -device virtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x3,drive=3Ddrive= -virtio-disk0,id=3Dvirtio-disk0 \ -drive file=3Dtest.img,format=3Draw,if=3Dnone,id=3Ddrive-virtio-disk0 =20 +In case an ARM virt machine is emulated, use the following command line: + +.. code-block:: console + + qemu-system-aarch64 -machine virt,gic-version=3D3,accel=3Dkvm \ + -cpu host -m 4G \ + -nographic -no-acpi \ + -chardev socket,id=3Dchrtpm,path=3D/tmp/mytpm1/swtpm-sock \ + -tpmdev emulator,id=3Dtpm0,chardev=3Dchrtpm \ + -device tpm-tis-device,tpmdev=3Dtpm0 \ + -device virtio-blk-pci,drive=3Ddrv0 \ + -drive format=3Dqcow2,file=3Dhda.qcow2,if=3Dnone,id=3Ddrv0 \ + -drive if=3Dpflash,format=3Draw,file=3Dflash0.img,readonly \ + -drive if=3Dpflash,format=3Draw,file=3Dflash1.img + + On ARM, ACPI boot with TPM is not yet supported. + In case SeaBIOS is used as firmware, it should show the TPM menu item after entering the menu with 'ESC'. =20 --=20 2.20.1