From patchwork Mon Jun 27 09:51:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bagas Sanjaya X-Patchwork-Id: 12896471 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 700DCC43334 for ; Mon, 27 Jun 2022 09:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234157AbiF0JwG (ORCPT ); Mon, 27 Jun 2022 05:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234134AbiF0JwC (ORCPT ); Mon, 27 Jun 2022 05:52:02 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E83A263F4; Mon, 27 Jun 2022 02:52:00 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id w6so8501947pfw.5; Mon, 27 Jun 2022 02:52:00 -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=6Q6vNqHtByULLuwlMYokh8M6QKN/nQOW7XhVlI32XvI=; b=Kiael6nFCPylmyFuNwE31jPNeRHitvbu8aU1umMjoTKot0kymWLndRiyJebU+ItFc9 ym7vuqtT+lUQeo7n0JKLAMZMCaDYhB5Lc7V8j3HymPWVRLMAMKnvSFO291bG8JUFNk68 5f1n58+jPjjlIXD5xW5dcPBpt+JpHbhmulRSSCgeHhSRndQilAMen0lEsgZmrBe/uYZv u+BouIyQwnrkrSEYPoItK5Y9WZyLrPMR5Gz45NxCEknEOjwnxwI0UuGvXtG7rCsSUiMh h3Gyzxb+HSr1KqB6rWXdmhdgZE9tSwZvdBRtoYGz9JqqETAZysNXz4YeM/H2X7yO6K23 Qavg== 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=6Q6vNqHtByULLuwlMYokh8M6QKN/nQOW7XhVlI32XvI=; b=k849Q4QqxrFdhinmVnKs+g7+8aUOCDT3wkfN9pTeOv5l7sR2ub1vJ9oK7kEysOcTRW aF9g97EwTlQ9x40++e7J4DQ1mk+3s8QOMzya9bDU7aeMU95tKWOFYi1N8FD8K3y9HKzh 02C7P/8I7fv2HfQXmmqbK7bSbiZFXovOdSGKSd9CEB12qGR8FaKEVb3FETMN5QE/TXEt XTbxnGsDd62jKO6E6vO5aPbIt1XdaxZD2cRCYx9+I1vcuU9L9nsljYkOEeYl7zcz3b/u J53oxBHJX/MHzyZzHdULhiAQi3C08IloBf+5n7uxISwnaUx7ur9zE3ojFQ+1CxKbykWN ctYA== X-Gm-Message-State: AJIora9NV/kYnxQ68J0fuYg8kbMc55rRbZ6WO4bAGaraJ081DNNtYI8F GRLKknskqOAa8CKQbJBjn64= X-Google-Smtp-Source: AGRyM1vPHPxUzliUdXL/xMATRU6Mb/pkFyZ26i4yj0U/WzUiP9+UVCMvPaNn1DD+1VIONSGhXTPcTA== X-Received: by 2002:a63:cd52:0:b0:3fe:30ec:825d with SMTP id a18-20020a63cd52000000b003fe30ec825dmr11812265pgj.82.1656323520442; Mon, 27 Jun 2022 02:52:00 -0700 (PDT) Received: from debian.me (subs03-180-214-233-72.three.co.id. [180.214.233.72]) by smtp.gmail.com with ESMTPSA id n13-20020a17090aab8d00b001ec9b7efec2sm6753928pjq.5.2022.06.27.02.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 02:51:59 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 953BA1038E5; Mon, 27 Jun 2022 16:51:56 +0700 (WIB) From: Bagas Sanjaya To: linux-doc@vger.kernel.org Cc: Bagas Sanjaya , Stephen Rothwell , Paolo Bonzini , Jonathan Corbet , David Matlack , Ben Gardon , Peter Xu , kvm@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH next 1/2] Documentation: KVM: extend KVM_CAP_VM_DISABLE_NX_HUGE_PAGES heading underline Date: Mon, 27 Jun 2022 16:51:50 +0700 Message-Id: <20220627095151.19339-2-bagasdotme@gmail.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220627095151.19339-1-bagasdotme@gmail.com> References: <20220627095151.19339-1-bagasdotme@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Extend heading underline for KVM_CAP_VM_DISABLE_NX_HUGE_PAGE to match the heading text length. Link: https://lore.kernel.org/lkml/20220627181937.3be67263@canb.auug.org.au/ Fixes: 084cc29f8bbb03 ("KVM: x86/MMU: Allow NX huge pages to be disabled on a per-vm basis") Reported-by: Stephen Rothwell Cc: Paolo Bonzini Cc: Jonathan Corbet Cc: David Matlack Cc: Ben Gardon Cc: Peter Xu Cc: kvm@vger.kernel.org Cc: linux-next@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Bagas Sanjaya --- Documentation/virt/kvm/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index bafaeedd455c38..ec9f16f472e709 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -8207,7 +8207,7 @@ dump related UV data. Also the vcpu ioctl `KVM_S390_PV_CPU_COMMAND` is available and supports the `KVM_PV_DUMP_CPU` subcommand. 8.38 KVM_CAP_VM_DISABLE_NX_HUGE_PAGES ---------------------------- +------------------------------------- :Capability KVM_CAP_VM_DISABLE_NX_HUGE_PAGES :Architectures: x86 From patchwork Mon Jun 27 09:51:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bagas Sanjaya X-Patchwork-Id: 12896469 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFB8EC433EF for ; Mon, 27 Jun 2022 09:52:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234140AbiF0JwD (ORCPT ); Mon, 27 Jun 2022 05:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbiF0JwB (ORCPT ); Mon, 27 Jun 2022 05:52:01 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C0E6378; Mon, 27 Jun 2022 02:52:00 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id o18so7726819plg.2; Mon, 27 Jun 2022 02:52:00 -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=dRX8FWNzBU7QvPCSptvJ8/0ZXRASxQI/9/dRpScKoWM=; b=D5W8LLPVBsfy3j+4HKtK9yEJ5wEU0qzSXPu9zRUxd/zIGMunanHjC0QgEYlBA17DAW xt0UIn9TPTx0LrUOk2U3WavV01Zc17vYhSh3LtNtTu923d3YScxoiRdf3iH1wzHHxj08 LnzBJWTvio3FBIM9qQFswATUHtvXRqlq1fGIhgJbto41FgKamK3VXpw6Qpwug6Be2Nwx 8Q+GVrNqld8SaIS/OlQWVq5ZbeVDv6vPJLZJDH8RcJuGhcns7C5nNMmL/UOTT2fcRFvK VSMk/lkj/PU68D8ktW6iMbaWtQmJ57ov6kIomOYXSv40ZCGSQqo/GzcEa6T8kMLnqSYq 4GBw== 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=dRX8FWNzBU7QvPCSptvJ8/0ZXRASxQI/9/dRpScKoWM=; b=BQVYJRMTURx/GcwN5ene5V+GZrsqeHOSjWO5MwGHlsidAw9siyVDyg+ZJrmzRnrV84 5QbyUFjcv6bKUIJDfMZrSfy5UsJGLwqSqSX7yKWLglsPeU+48NR6xhuS2cwgLJX5MUKe l1p7fxvYJysVjXUJG94q5ayemME3ZmzKNP03Yj2zjmMcxehyqZ2RtpbB0tXwsOZM39G1 VYdzV93HDLbJnp97AuoJwdR7mJkR7fcHR5jlrpbakppgIiHvmKiyn+EiQss6NyyvCCxW 6nchVQVB2+hBECXLCMugorSspjAc0K//J8bEjj7Hb6g35kw9EL9jofy3L2W1U/K+3TRy dnUA== X-Gm-Message-State: AJIora+q6YB74Igly30V1T9gZRBeJjAXm3037xC6mH92Z4iXj/HAYMZe Vf2kBCNSsWpH0eMWS75Sgxs= X-Google-Smtp-Source: AGRyM1vtVzM4K0yHjGP9MGHdazzgBgMeEwQiVqV7kI2RBsQLQMD0tQMY75a1Ieu4RL7NzxOip7APJQ== X-Received: by 2002:a17:903:1c4:b0:16b:7928:95ce with SMTP id e4-20020a17090301c400b0016b792895cemr5896510plh.158.1656323519781; Mon, 27 Jun 2022 02:51:59 -0700 (PDT) Received: from debian.me (subs03-180-214-233-72.three.co.id. [180.214.233.72]) by smtp.gmail.com with ESMTPSA id 71-20020a63034a000000b0040d2d9f15e0sm6727357pgd.20.2022.06.27.02.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 02:51:59 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 772C91037D8; Mon, 27 Jun 2022 16:51:56 +0700 (WIB) From: Bagas Sanjaya To: linux-doc@vger.kernel.org Cc: Bagas Sanjaya , Stephen Rothwell , Paolo Bonzini , Jonathan Corbet , David Matlack , Ben Gardon , Peter Xu , kvm@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH next 2/2] KVM: x86/MMU: properly format KVM_CAP_VM_DISABLE_NX_HUGE_PAGES capability table Date: Mon, 27 Jun 2022 16:51:51 +0700 Message-Id: <20220627095151.19339-3-bagasdotme@gmail.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220627095151.19339-1-bagasdotme@gmail.com> References: <20220627095151.19339-1-bagasdotme@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org There is unexpected warning on KVM_CAP_VM_DISABLE_NX_HUGE_PAGES capability table, which cause the table to be rendered as paragraph text instead. The warning is due to missing colon at capability name and returns keyword, as well as improper alignment on multi-line returns field. Fix the warning by adding missing colons and aligning the field. Link: https://lore.kernel.org/lkml/20220627181937.3be67263@canb.auug.org.au/ Fixes: 084cc29f8bbb03 ("KVM: x86/MMU: Allow NX huge pages to be disabled on a per-vm basis") Reported-by: Stephen Rothwell Cc: Paolo Bonzini Cc: Jonathan Corbet Cc: David Matlack Cc: Ben Gardon Cc: Peter Xu Cc: kvm@vger.kernel.org Cc: linux-next@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Bagas Sanjaya --- Documentation/virt/kvm/api.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index ec9f16f472e709..df8fc905217437 100644 --- a/Documentation/virt/kvm/api.rst +++ b/Documentation/virt/kvm/api.rst @@ -8209,13 +8209,13 @@ available and supports the `KVM_PV_DUMP_CPU` subcommand. 8.38 KVM_CAP_VM_DISABLE_NX_HUGE_PAGES ------------------------------------- -:Capability KVM_CAP_VM_DISABLE_NX_HUGE_PAGES +:Capability: KVM_CAP_VM_DISABLE_NX_HUGE_PAGES :Architectures: x86 :Type: vm :Parameters: arg[0] must be 0. -:Returns 0 on success, -EPERM if the userspace process does not - have CAP_SYS_BOOT, -EINVAL if args[0] is not 0 or any vCPUs have been - created. +:Returns: 0 on success, -EPERM if the userspace process does not + have CAP_SYS_BOOT, -EINVAL if args[0] is not 0 or any vCPUs have been + created. This capability disables the NX huge pages mitigation for iTLB MULTIHIT.