Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1177282imw; Fri, 8 Jul 2022 21:29:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tBXhIX9TYYa5XAKOqSY8+RCaq+g8vSN532LhODUUeyWTwLq3f/QDNHb8vHK61QU/gOdsZ1 X-Received: by 2002:a63:1607:0:b0:412:8fc0:756b with SMTP id w7-20020a631607000000b004128fc0756bmr6076688pgl.142.1657340997489; Fri, 08 Jul 2022 21:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657340997; cv=none; d=google.com; s=arc-20160816; b=Pku9WghIshOY/V4Tq7+/3JKpLy/dpz3FA75VkMfy0/wNbLL6oJTxywdpRt4M10Nv66 +qczDZ7LOtdFM4EupnuEPUklPqGG/rJyQXkyRftuc071urRCF5U0M6D8eFAqk1biUQ+I h7oa5G2rOCprYAXrhEE74XUOUdc+3YpUTjNshUcaaWPXLz7iEuG5g845XGhQkujA25q2 WQHhXeV+Lsd21k9MbI5TAkxE6V2s0XiXC1QSE2jS8CckARnZimXq2eZP56ZVfZ2diaTe DoWiVTKHZElCu0mYzpEeGBhPsb5/ohAyheCuVIlMxqJ/7agAiogUy/RDt1b5AzwJ+2wA 9Tew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7862CG8gdBkkTAJc3wwQbEUsLZoydkrGNeAOeSolID4=; b=sS8s7D3IxnSoCO5G5P9EVgdQRGkYRClXXu1yMlnDhV1I+IzG7oDoJHSmOPs5LHUSGh OM6Suyc/FhjwhVb8zKO/E1VZdONpEq52K/JolYLlkdamaVX7LkYess2a7LsAuf7Yzfiu tt3fTewW5E/9m5g14qKEc59ToVYtPsLHE9aS6Y6UWk+brHynploaTYsxSzu+1F7gR0ip BAPyWfVavSJ7FzPGczJnSUO7g8wQI4E0Bh8su8vVHIo6sELHqlNc2pUrr+zYs5yRTP6t iH3uI4vjzOtlMVpjzZf5MFJ2fY7yJspdCBmWPyCKTbTWdQNQOKyn14QhZ8lUxZdG6GPF +A6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WYW4Chbp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l25-20020a637019000000b00415ce5ae58esi840063pgc.782.2022.07.08.21.29.46; Fri, 08 Jul 2022 21:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WYW4Chbp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbiGIEWC (ORCPT + 99 others); Sat, 9 Jul 2022 00:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiGIEVX (ORCPT ); Sat, 9 Jul 2022 00:21:23 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 784EF4E861; Fri, 8 Jul 2022 21:21:22 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id z12-20020a17090a7b8c00b001ef84000b8bso3697633pjc.1; Fri, 08 Jul 2022 21:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7862CG8gdBkkTAJc3wwQbEUsLZoydkrGNeAOeSolID4=; b=WYW4ChbpsRxZ1gJaxSIztXNft5qthK/2PeMQCA9WXhq4+rRV2J4W1LcAEdYKzA3XLa SIkvqry5SrQFEZCGaE7PZvtf4cnGRMqfjmeMxEVS2Lhr5Y+qKvdZISBgh81rs7UgJya9 SjP39SvaBQ741WGaKGKqTVbMmFpmJVuQqVatEEWFHPkQmB/itDoH9tAFVimcIludyvXA hxSqt5YCWJs3KtSjkHa/ZAu1V/ehd+qMWd+ucNdYwse0cuqGAsFhWvVra+tXOWrCEbt1 Tb97dcfZLxhaHMVgteSLnL+tmKsiOoQzS10NO2vCtZP9Yej1H0BRE0FDJzSDhTRsCWf6 mT6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7862CG8gdBkkTAJc3wwQbEUsLZoydkrGNeAOeSolID4=; b=dl3sGte9tSZrD4jGHFbE2roRrAwOgwo4RIIF9WXFpQ6TQfS12aY5oJrqrQa0Mia5MO ovT9/+13d9NMFhuNOUS32mrSB9EeM2hhRMqZSSiI1fDTS1D6r/Vwdl1pBierMNGt5Vyd 2o/wLKc6228psiQUDywMWAbz2zFlfnBtibiqrH1Tf8qU0n6XiUuOJ4CgFGD3nkKP8y3f uMIyb0vYR4lrlxeyavUgXWnfU2PhZclQjIYiEbYQtdMU0qNfTrv/mifljpCuyUhoCPCq kEK+UzncRvFSKfA4VVxxlHVT601zMvwtpm7BTFu6zk2R/+CZVw+JGXDjZ5cs7u2N3UK8 VvHQ== X-Gm-Message-State: AJIora/ZeeEPyfuRRbpDEvPrfYuDs15Y7bv9WDYVIhK2Atqv7qFQPCNq 8ckPQXZ/xvisCaC8HdmPL98= X-Received: by 2002:a17:903:41d2:b0:16a:2cca:4869 with SMTP id u18-20020a17090341d200b0016a2cca4869mr7057894ple.13.1657340481995; Fri, 08 Jul 2022 21:21:21 -0700 (PDT) Received: from debian.me (subs02-180-214-232-88.three.co.id. [180.214.232.88]) by smtp.gmail.com with ESMTPSA id n17-20020a170902d2d100b0016c23c2c98dsm318286plc.246.2022.07.08.21.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 21:21:21 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id E05EB1039C8; Sat, 9 Jul 2022 11:21:11 +0700 (WIB) From: Bagas Sanjaya To: linux-doc@vger.kernel.org Cc: Paolo Bonzini , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Isaku Yamahata , Kai Huang , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Bagas Sanjaya Subject: [PATCH 11/12] Documentation: x86: Use literal code block for TDX dmesg output Date: Sat, 9 Jul 2022 11:20:37 +0700 Message-Id: <20220709042037.21903-12-bagasdotme@gmail.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220709042037.21903-1-bagasdotme@gmail.com> References: <20220709042037.21903-1-bagasdotme@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dmesg output blocks are using line blocks, which is incorrect, since this will render the blocks as normal paragraph with preserved line breaks instead of code blocks. Use literal code blocks instead for the output. Fixes: f05f595045dfc7 ("Documentation/x86: Add documentation for TDX host support") Signed-off-by: Bagas Sanjaya --- Documentation/x86/tdx.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Documentation/x86/tdx.rst b/Documentation/x86/tdx.rst index 4430912a2e4f05..f5bd22b89159ec 100644 --- a/Documentation/x86/tdx.rst +++ b/Documentation/x86/tdx.rst @@ -41,11 +41,11 @@ TDX boot-time detection ----------------------- Kernel detects TDX and the TDX private KeyIDs during kernel boot. User -can see below dmesg if TDX is enabled by BIOS: +can see below dmesg if TDX is enabled by BIOS:: -| [..] tdx: SEAMRR enabled. -| [..] tdx: TDX private KeyID range: [16, 64). -| [..] tdx: TDX enabled by BIOS. + [..] tdx: SEAMRR enabled. + [..] tdx: TDX private KeyID range: [16, 64). + [..] tdx: TDX enabled by BIOS. TDX module detection and initialization --------------------------------------- @@ -79,20 +79,20 @@ caller. User can consult dmesg to see the presence of the TDX module, and whether it has been initialized. -If the TDX module is not loaded, dmesg shows below: +If the TDX module is not loaded, dmesg shows below:: -| [..] tdx: TDX module is not loaded. + [..] tdx: TDX module is not loaded. If the TDX module is initialized successfully, dmesg shows something -like below: +like below:: -| [..] tdx: TDX module: vendor_id 0x8086, major_version 1, minor_version 0, build_date 20211209, build_num 160 -| [..] tdx: 65667 pages allocated for PAMT. -| [..] tdx: TDX module initialized. + [..] tdx: TDX module: vendor_id 0x8086, major_version 1, minor_version 0, build_date 20211209, build_num 160 + [..] tdx: 65667 pages allocated for PAMT. + [..] tdx: TDX module initialized. -If the TDX module failed to initialize, dmesg shows below: +If the TDX module failed to initialize, dmesg shows below:: -| [..] tdx: Failed to initialize TDX module. Shut it down. + [..] tdx: Failed to initialize TDX module. Shut it down. TDX Interaction to Other Kernel Components ------------------------------------------ @@ -143,10 +143,10 @@ There are basically two memory hot-add cases that need to be prevented: ACPI memory hot-add and driver managed memory hot-add. The kernel rejectes the driver managed memory hot-add too when TDX is enabled by BIOS. For instance, dmesg shows below error when using kmem driver to -add a legacy PMEM as system RAM: +add a legacy PMEM as system RAM:: -| [..] tdx: Unable to add memory [0x580000000, 0x600000000) on TDX enabled platform. -| [..] kmem dax0.0: mapping0: 0x580000000-0x5ffffffff memory add failed + [..] tdx: Unable to add memory [0x580000000, 0x600000000) on TDX enabled platform. + [..] kmem dax0.0: mapping0: 0x580000000-0x5ffffffff memory add failed However, adding new memory to ZONE_DEVICE should not be prevented as those pages are not managed by the page allocator. Therefore, -- An old man doll... just what I always wanted! - Clara