Commit 19a7cc81 authored by Bagas Sanjaya's avatar Bagas Sanjaya Committed by Paolo Bonzini

KVM: x86/MMU: properly format KVM_CAP_VM_DISABLE_NX_HUGE_PAGES capability table

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: 084cc29f ("KVM: x86/MMU: Allow NX huge pages to be disabled on a per-vm basis")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: David Matlack <dmatlack@google.com>
Cc: Ben Gardon <bgardon@google.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: kvm@vger.kernel.org
Cc: linux-next@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarBagas Sanjaya <bagasdotme@gmail.com>
Message-Id: <20220627095151.19339-3-bagasdotme@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent b4aed4d8
...@@ -8264,13 +8264,13 @@ available and supports the `KVM_PV_DUMP_CPU` subcommand. ...@@ -8264,13 +8264,13 @@ available and supports the `KVM_PV_DUMP_CPU` subcommand.
8.38 KVM_CAP_VM_DISABLE_NX_HUGE_PAGES 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 :Architectures: x86
:Type: vm :Type: vm
:Parameters: arg[0] must be 0. :Parameters: arg[0] must be 0.
:Returns 0 on success, -EPERM if the userspace process does not :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 have CAP_SYS_BOOT, -EINVAL if args[0] is not 0 or any vCPUs have been
created. created.
This capability disables the NX huge pages mitigation for iTLB MULTIHIT. This capability disables the NX huge pages mitigation for iTLB MULTIHIT.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment