From nobody Tue May 21 16:18:04 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1662396080; cv=none; d=zohomail.com; s=zohoarc; b=kmaLPU3cMOglwXIb+iQBsC07/iC5UcuZalNS9WFlJ+FliQ1O2MbYs6f2Z9guW6uD8/Nsy9Q5EHX8E9RO/UtanHaJoJQZEw/jD8lUuI6h7vBwS7pMi7Qs21UTM1NrjF63ELikM7ctxv7kuQUCez+1xhur8qirxDKnq7azPkcvmBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662396080; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=fiYa+bP97eG+wQcfayoeQ3geZEccRlmA5MPJU77GJHc=; b=Df6zlLiUKHSob/dAULnLVqO7KPvuWeiHPHiARZcLC0lDDTJF6M4pRIX+ec9t5WE+FLPRhz9dSJOgMSZ1GM6rEpL8rgRJ+Pz8yq/KBtYTcizSRcBUwpF6+J/KIDx4VQbxAjqtlvlk21CM/Clrlw/4uwXYD/xzeMsaP1ByH1NKY9Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1662396080990930.4542667209665; Mon, 5 Sep 2022 09:41:20 -0700 (PDT) Received: from localhost ([::1]:44338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVF9z-0008JU-Mp for importer@patchew.org; Mon, 05 Sep 2022 12:41:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVF8W-0007J4-Ku for qemu-devel@nongnu.org; Mon, 05 Sep 2022 12:39:48 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:34781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVF8V-0003DP-0g for qemu-devel@nongnu.org; Mon, 05 Sep 2022 12:39:48 -0400 Received: by mail-ed1-x52d.google.com with SMTP id z21so1974372edi.1 for ; Mon, 05 Sep 2022 09:39:46 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id u9-20020a1709061da900b007477ee86946sm5192076ejh.87.2022.09.05.09.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 09:39:44 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 325C91FFB7; Mon, 5 Sep 2022 17:39:44 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=fiYa+bP97eG+wQcfayoeQ3geZEccRlmA5MPJU77GJHc=; b=KL+cTUKUQJq+5pHZJjwme8WfNGdZxQjZc/PTa3YVSnMgSDojm1Vwx1s+E2prQnciKe Xs0cTI3Ahi60EHz+0vf45jvQf4mJnagvjSYJtK3BkDUuGB0i0aKGn41Norlgw7Ih62gg jZuz7uWfrPg/ddWnn9PI49daf87kU/S+xGUEUUCmNUvCD5SIQsfcbcBwMGJzZgFniXyh Lvt1RoCX8iY7XScRtI2Qmp2WwJ9PE+LCSpenyhlISAJpL/tbaeV1NShVEyLhPR0gP015 PPzI3E5pqVftOnfT2oK+BbxAHJ+u4QiAJy2f2dU1Ys7tI7ucfA4keVfvWfi07h3lEAGO rkoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=fiYa+bP97eG+wQcfayoeQ3geZEccRlmA5MPJU77GJHc=; b=l3amsaW39WxvRwkBY5vH/SKeFPhcQt0M1JYk6KPiZ/G87xqeZm3LKMREdaCCt4SRs7 NqS7Wj3Qdi2TNFfytaxZGqjp5euEllXSQ069JDHIISmherRshT/kLTtfWCp/gFTQpcyl 339odcwa7ZvyIBBvLZvbn9jVRDG280hOKq9779jkQWC7E9W0ESLvp62q6gE6v3Gcp7LS PmgJvV5edtfoVRATe4b7mi0ppbxFks0Os6egGgfm7OOG9WbunJJzpMb5o+lU1cJKysi5 BeLyiLuCJuBgUmLWNE216wwtp1kUW7Jsl84saRlauzm6zW3IC3jVE9PMThHi7IfVcbbv xGPg== X-Gm-Message-State: ACgBeo3m6EXwmaa5CToUD3xHNcWBS3QIKNDK4ca+rKUxqu8Gz50rQkvI funDWLlk0nAxFbNQqWVAyUcARA== X-Google-Smtp-Source: AA6agR59rCygW4HAG6XoIuTzV29mJHqV+8VyJcLIAcUqxTv8GeNA5cfV0yt8VqjVblntsnwntU7Xvw== X-Received: by 2002:a50:baea:0:b0:448:182d:9bc2 with SMTP id x97-20020a50baea000000b00448182d9bc2mr37419693ede.341.1662395985193; Mon, 05 Sep 2022 09:39:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [RFC PATCH] docs/system: clean up code escape for riscv virt platform Date: Mon, 5 Sep 2022 17:39:39 +0100 Message-Id: <20220905163939.1599368-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1662396083206100001 The example code is rendered slightly mangled due to missing code block. Properly escape the code block and add shell prompt and qemu to fit in with the other examples on the page. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Alistair Francis --- docs/system/riscv/virt.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/system/riscv/virt.rst b/docs/system/riscv/virt.rst index f8ecec95f3..4b16e41d7f 100644 --- a/docs/system/riscv/virt.rst +++ b/docs/system/riscv/virt.rst @@ -168,14 +168,19 @@ Enabling TPM =20 A TPM device can be connected to the virt board by following the steps bel= ow. =20 -First launch the TPM emulator +First launch the TPM emulator: =20 - swtpm socket --tpm2 -t -d --tpmstate dir=3D/tmp/tpm \ +.. code-block:: bash + + $ swtpm socket --tpm2 -t -d --tpmstate dir=3D/tmp/tpm \ --ctrl type=3Dunixio,path=3Dswtpm-sock =20 -Then launch QEMU with: +Then launch QEMU with some additional arguments to link a TPM device to th= e backend: + +.. code-block:: bash =20 - ... + $ qemu-system-riscv64 \ + ... other args .... \ -chardev socket,id=3Dchrtpm,path=3Dswtpm-sock \ -tpmdev emulator,id=3Dtpm0,chardev=3Dchrtpm \ -device tpm-tis-device,tpmdev=3Dtpm0 --=20 2.34.1