linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] kvm: mmu: fix typos in struct kvm_arch
@ 2022-07-28 10:37 Hao Peng
  2022-07-28 16:16 ` David Matlack
  0 siblings, 1 reply; 2+ messages in thread
From: Hao Peng @ 2022-07-28 10:37 UTC (permalink / raw)
  To: pbonzini; +Cc: kvm, linux-kernel, Sean Christopherson, dmatlack

From: Peng Hao <flyingpeng@tencent.com>

No 'kvmp_mmu_pages', it should be 'kvm_mmu_page'. And
struct kvm_mmu_pages and struct kvm_mmu_page are different structures,
here should be kvm_mmu_page.
kvm_mmu_pages is defined in arch/x86/kvm/mmu/mmu.c.

Suggested-by: David Matlack <dmatlack@google.com>
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
---
 arch/x86/include/asm/kvm_host.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index e8281d64a431..e67b2f602fb2 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -1272,8 +1272,8 @@ struct kvm_arch {
        bool tdp_mmu_enabled;

        /*
-        * List of struct kvm_mmu_pages being used as roots.
-        * All struct kvm_mmu_pages in the list should have
+        * List of kvm_mmu_page structs being used as roots.
+        * All kvm_mmu_page structs in the list should have
         * tdp_mmu_page set.
         *
         * For reads, this list is protected by:
@@ -1292,8 +1292,8 @@ struct kvm_arch {
        struct list_head tdp_mmu_roots;

        /*
-        * List of struct kvmp_mmu_pages not being used as roots.
-        * All struct kvm_mmu_pages in the list should have
+        * List of kvm_mmu_page structs not being used as roots.
+        * All kvm_mmu_page structs in the list should have
         * tdp_mmu_page set and a tdp_mmu_root_count of 0.
         */
        struct list_head tdp_mmu_pages;
@@ -1303,9 +1303,9 @@ struct kvm_arch {
         * is held in read mode:
         *  - tdp_mmu_roots (above)
         *  - tdp_mmu_pages (above)
-        *  - the link field of struct kvm_mmu_pages used by the TDP MMU
+        *  - the link field of kvm_mmu_page structs used by the TDP MMU
         *  - lpage_disallowed_mmu_pages
-        *  - the lpage_disallowed_link field of struct kvm_mmu_pages used
+        *  - the lpage_disallowed_link field of kvm_mmu_page structs used
         *    by the TDP MMU
         * It is acceptable, but not necessary, to acquire this lock when
         * the thread holds the MMU lock in write mode.
--
2.27.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] kvm: mmu: fix typos in struct kvm_arch
  2022-07-28 10:37 [PATCH v2] kvm: mmu: fix typos in struct kvm_arch Hao Peng
@ 2022-07-28 16:16 ` David Matlack
  0 siblings, 0 replies; 2+ messages in thread
From: David Matlack @ 2022-07-28 16:16 UTC (permalink / raw)
  To: Hao Peng; +Cc: pbonzini, kvm, linux-kernel, Sean Christopherson

On Thu, Jul 28, 2022 at 06:37:24PM +0800, Hao Peng wrote:
> From: Peng Hao <flyingpeng@tencent.com>
> 
> No 'kvmp_mmu_pages', it should be 'kvm_mmu_page'. And
> struct kvm_mmu_pages and struct kvm_mmu_page are different structures,
> here should be kvm_mmu_page.
> kvm_mmu_pages is defined in arch/x86/kvm/mmu/mmu.c.
> 
> Suggested-by: David Matlack <dmatlack@google.com>
> Signed-off-by: Peng Hao <flyingpeng@tencent.com>

Reviewed-by: David Matlack <dmatlack@google.com>

> ---
>  arch/x86/include/asm/kvm_host.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
> index e8281d64a431..e67b2f602fb2 100644
> --- a/arch/x86/include/asm/kvm_host.h
> +++ b/arch/x86/include/asm/kvm_host.h
> @@ -1272,8 +1272,8 @@ struct kvm_arch {
>         bool tdp_mmu_enabled;
> 
>         /*
> -        * List of struct kvm_mmu_pages being used as roots.
> -        * All struct kvm_mmu_pages in the list should have
> +        * List of kvm_mmu_page structs being used as roots.
> +        * All kvm_mmu_page structs in the list should have
>          * tdp_mmu_page set.
>          *
>          * For reads, this list is protected by:
> @@ -1292,8 +1292,8 @@ struct kvm_arch {
>         struct list_head tdp_mmu_roots;
> 
>         /*
> -        * List of struct kvmp_mmu_pages not being used as roots.
> -        * All struct kvm_mmu_pages in the list should have
> +        * List of kvm_mmu_page structs not being used as roots.
> +        * All kvm_mmu_page structs in the list should have
>          * tdp_mmu_page set and a tdp_mmu_root_count of 0.
>          */
>         struct list_head tdp_mmu_pages;
> @@ -1303,9 +1303,9 @@ struct kvm_arch {
>          * is held in read mode:
>          *  - tdp_mmu_roots (above)
>          *  - tdp_mmu_pages (above)
> -        *  - the link field of struct kvm_mmu_pages used by the TDP MMU
> +        *  - the link field of kvm_mmu_page structs used by the TDP MMU
>          *  - lpage_disallowed_mmu_pages
> -        *  - the lpage_disallowed_link field of struct kvm_mmu_pages used
> +        *  - the lpage_disallowed_link field of kvm_mmu_page structs used
>          *    by the TDP MMU
>          * It is acceptable, but not necessary, to acquire this lock when
>          * the thread holds the MMU lock in write mode.
> --
> 2.27.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-28 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 10:37 [PATCH v2] kvm: mmu: fix typos in struct kvm_arch Hao Peng
2022-07-28 16:16 ` David Matlack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).