Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp475823imn; Wed, 27 Jul 2022 11:15:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tPUdg6867YEnjJphUslE4gXRSZ/jFz5V1LmorL/JtTzrHGdq8IDa06sp8MYZp/YCFTgonR X-Received: by 2002:a17:907:6d1e:b0:72b:4add:75db with SMTP id sa30-20020a1709076d1e00b0072b4add75dbmr18723401ejc.717.1658945710547; Wed, 27 Jul 2022 11:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658945710; cv=none; d=google.com; s=arc-20160816; b=G2gyABXAFGM1V6w8GLvQH7nYN10bCqpVEnAZ9ZGmaFLEwlIbB6vwgko45LQ9gYcpfI poGMFxKj+tPfRnv8WOJbURXzHTPeuIy5c0y4sURH8UJA0/V149/wML2/v1iH7JsgHc5K 2UFXATmNDwrMCCeJpi96EivzVyuManlMMt0fYYGhiW8x6YDL8WXZ52WZnryGG5rI/bCN hWthRf2ZC2HOavTVUQvLkFnNYfKeQP8sC6mifoEZxl9UhSxNhDC8zx/eRtbAIw1JI3c6 GDjzPf89RfTVkxazJZbPesYTfTWWM4DqA4NccpIoWke9LtxJXBMS66F6wutDWeZ8BZ+D f3sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hzahODgMNuon2IeUr2EuuHPWt8+D9EzcvbJbwRZcpkA=; b=ntt2RgPoc/FFOLSRZcQfXAZ6dU56UJutYshUwYDRIvhKbi22XTrtbE6Eh7yCxQeEZp 1owj6XI05kBs/s4cdwcettIPZhnXof8Yn94NzyglilTQQqGeiLUtxPfBFCcuSZHMgrBn BenY7X8jKgvugb55UREJGq0BHVabgX8umMOjA4rnwXySblysYsJgkGQKolrrK+NckGRs 5i0J2qFnO/p8wRDuR1iJVY7xlVjX7X3ueowWkXJdvEqMYp10934peZc7hyOFTNE/MpVA uOX2Yl3i2upi0u52E6SgaS9GGSl0eNPOauQLemR4gczyZlSyly3ovTr2MvNrIfjZ1f16 xzDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=q37f8MYD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a0564021f0b00b0043bca6b19e3si15211802edb.609.2022.07.27.11.14.46; Wed, 27 Jul 2022 11:15:10 -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=@google.com header.s=20210112 header.b=q37f8MYD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240728AbiG0Qvh (ORCPT + 99 others); Wed, 27 Jul 2022 12:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240727AbiG0QvB (ORCPT ); Wed, 27 Jul 2022 12:51:01 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2951E61DA1 for ; Wed, 27 Jul 2022 09:33:20 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id v21so1822057ljh.3 for ; Wed, 27 Jul 2022 09:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hzahODgMNuon2IeUr2EuuHPWt8+D9EzcvbJbwRZcpkA=; b=q37f8MYDml0WJQ6tALjGlG5Vm7UhkOtu+hluMsitRxWmOAPmVBZWNmPWNbjHKSc1N9 QGY6rimQfE6pvxDGfLLTJtOLancrwW4USdDDzbqGrxGxoJBos/6bKm2yrdmFi6rpMHb8 JSSk01V4sXf1ecwSzunHRWz+9wQkpvuLuzE2z+T1GGoDaJPCDx3DA6L7qxDhrV3XXjcO nzjlX+BpVDXctxfyqiIOZu57hV6UNdMJgKgMlcKeS/bo03JKmsks6tn9htHJk9XlMXWW zNBpRKP8AVoaaaRaBqsXUg08ZVrekrYI5Fhq0tJqY8Cbtes3dNJxM+xPEYI7d7APDGsl y8tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hzahODgMNuon2IeUr2EuuHPWt8+D9EzcvbJbwRZcpkA=; b=RsNSh7sQ3RxRUzozIvyjR8OkfrZLmkjtn/tAzBfXCetr/cf6fc1gpxCiUHHvF8vLtT OBZVXPT7mPalph6wZnaJ3ZkAAFtIu3yPBhM7000o/dosW0AxKYZJLHrTUqpb626IUlJK vHKxrETVWU4DKKWt2h9Ze1J7CDo8Q+cYhRD45TpCtMW8ZhvmJQ8lQ7Uv/9iIvnq9PsCL CqTz7213TcoRVPH6MqO9IeIu8UJTR+ubDd56COb/Gd0ablojLSq+0ZZEereCKigLRkJF LjqfcPesiEbFPHP7ZsvMYrpbHgDCsYWCaRoaR0M7liYVu62EBNiziisR6hT1S5Xah9Ss QETw== X-Gm-Message-State: AJIora9/kaUQ7Cp92Pjh9R3ChvNb08mG8W5+T78qRBKJhzRg5GxVySQp f4Z4sbiswVuJ4Es6JybeIAQGux3YyGE69L1SXlu/9Uh8Hrs= X-Received: by 2002:a2e:a914:0:b0:25d:f74a:54c0 with SMTP id j20-20020a2ea914000000b0025df74a54c0mr8116851ljq.290.1658939598105; Wed, 27 Jul 2022 09:33:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Matlack Date: Wed, 27 Jul 2022 09:32:51 -0700 Message-ID: Subject: Re: [PATCH] kvm: mmu: fix typos in struct kvm_arch To: Hao Peng Cc: Paolo Bonzini , kvm list , LKML , Sean Christopherson Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 On Wed, Jul 27, 2022 at 3:58 AM Hao Peng wrote: > > From: Peng Hao > > 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. > > Signed-off-by: Peng Hao > --- > arch/x86/include/asm/kvm_host.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index e8281d64a431..205a9f374e14 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 struct kvm_mmu_page being used as roots. I agree that "struct s" is a bad/misleading way to make a struct plural in comments. The way I prefer to do it is " structs". That avoids changing the and still makes it clear it's plural. So in this case the comment would be: /* * List of kvm_mmu_page structs being used as roots. * All kvm_mmu_page structs in the list should have * tdp_mmu_page set. */ > + * All struct kvm_mmu_page 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 struct kvm_mmu_page not being used as roots. > + * All struct kvm_mmu_page in the list should have > * tdp_mmu_page set and a tdp_mmu_root_count of 0. > */ > struct list_head tdp_mmu_pages; > -- > 2.27.0