From nobody Thu Apr 2 23:01:52 2026 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 D4A48C54EE9 for ; Tue, 20 Sep 2022 05:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbiITFAj (ORCPT ); Tue, 20 Sep 2022 01:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbiITFAg (ORCPT ); Tue, 20 Sep 2022 01:00:36 -0400 X-Greylist: delayed 599 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 19 Sep 2022 22:00:23 PDT Received: from mail10.tencent.com (mail10.tencent.com [14.18.183.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52D0D286F8 for ; Mon, 19 Sep 2022 22:00:21 -0700 (PDT) Received: from EX-SZ021.tencent.com (unknown [10.28.6.73]) by mail10.tencent.com (Postfix) with ESMTP id 11379D4907; Tue, 20 Sep 2022 12:44:38 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tencent.com; s=s202002; t=1663649078; bh=ZyARqJMFdysKk8MYGVUFgQsHULKhbzQIIkgr8sNCSgA=; h=From:To:CC:Subject:Date; b=LMZ87klsmKD64XwCGOUcSO5SHjCPoilE9ttbJWUjNYppDGS6S/Jipvx9gUZOPlo/4 KcGJw7SU3GoAd68QymYsw+eGdIoI1pCGZybUsRLy0BE1ke2TEu33HjANBwbnhqA39A 8Bgf/Do4JzqBGvrlGE75CDYHm54k9ZcV6vFfz224= Received: from EX-SZ045.tencent.com (10.28.6.96) by EX-SZ021.tencent.com (10.28.6.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 20 Sep 2022 12:44:37 +0800 Received: from EX-SZ049.tencent.com (10.28.6.102) by EX-SZ045.tencent.com (10.28.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 20 Sep 2022 12:44:37 +0800 Received: from EX-SZ049.tencent.com ([fe80::e0be:89c3:ec1:bef7]) by EX-SZ049.tencent.com ([fe80::e0be:89c3:ec1:bef7%8]) with mapi id 15.01.2242.008; Tue, 20 Sep 2022 12:44:37 +0800 From: =?utf-8?B?Zmx5aW5ncGVuZyjlva3mtakp?= To: "pbonzini@redhat.com" CC: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [RESEND PATCH] kvm: mmu: fix typos in struct kvm_arch Thread-Topic: [RESEND PATCH] kvm: mmu: fix typos in struct kvm_arch Thread-Index: AQHYzKuvOes+0LB2n0mt06s9Fk30YQ== Date: Tue, 20 Sep 2022 04:44:37 +0000 Message-ID: <6DB576D7-C37D-4D11-95BF-DB23522FA8ED@tencent.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.48.13] Content-Type: text/plain; charset="utf-8" Content-ID: <3D1FCB50A8AEDB458733501A3A281CAF@tencent.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Peng Hao Reviewed-by: David Matlack --- 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_hos= t.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