Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3536113pxj; Tue, 15 Jun 2021 03:09:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxITYw+dWGK9mOOLtN0pZNSAc1sd/tEhejwC0f/ZByooLUOKv9/47yXrsLvcDCM5DDCRqA/ X-Received: by 2002:a05:6e02:13e5:: with SMTP id w5mr17222368ilj.112.1623751777270; Tue, 15 Jun 2021 03:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623751777; cv=none; d=google.com; s=arc-20160816; b=noOV9Nd7ZSWM28925INx+LhqJJkzjpJzRDyTL2NaFVhBqnSDpFL7GE9py0zHAPWRBF SCxdsEpZdjj8UL2oGP8YmgRXigI2iGUDqHE1d0bki/OIpI+G92y78aPMoY0FzyyxbmZq GUhwYypZTWFn5gB69IJIDRq4M3bGKw56qSDiCpuCUwj69gWxHQAkFDAS3N8F709L72vh mi37ueusmCmeOpAMjwAINRv14af//6Pz0yXz2lc3wQY7LVF3J69wSsUJmbcNu2UWds7G Q2kYKw4gzJDs3/NIJDL+DGEXgt6Oj7YhUJe/VARY29RYeJgyA9pA9S20pduYQKomqrWR iwHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=J0rJsFjM8TuoomkWCbj1mAUxmsNFXQN3mPT0DUb/XYU=; b=uUR5rBsDYxM9f2oKuIZihQGw5e08JKg4zbZVIbeWqeKJQa5SkFweLsw/JeLt+hBDMF Custwzx/KR/aD9rkSjIG6TQqgupaMYJ4FB9BOKunHLq5uexTwYQWb6F4DFHEVDfkN3a9 Rpguzv6nHhzNcxO7bG9tZVSCak9VGX+ouKY53DteZdyDRL1mRIqJ7bIlwxEcNBxIoXo9 gEtSIC7VYU55fK+rt8LROsAY6QyC5TuUmAqKtp4lmzJsfWUNa3vfvAiDVVbAIsJzihRR vJEBf09IvTQdbujYHTmKS5vp/YgujPJYg1R+Ot4ONPZ35uThWEDuYcLKCSB9CBPbIj29 rssQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si19590121ilm.43.2021.06.15.03.09.24; Tue, 15 Jun 2021 03:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231374AbhFOKK5 (ORCPT + 99 others); Tue, 15 Jun 2021 06:10:57 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:6375 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbhFOKK4 (ORCPT ); Tue, 15 Jun 2021 06:10:56 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G43pC3n99z63ZS; Tue, 15 Jun 2021 18:04:51 +0800 (CST) Received: from dggpemm500023.china.huawei.com (7.185.36.83) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 18:08:43 +0800 Received: from [10.174.187.128] (10.174.187.128) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 18:08:43 +0800 Subject: Re: [PATCH] KVM: arm64: Fix inconsistency from function comment of __unmap_stage2_range To: Marc Zyngier CC: James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , , , , , References: <20210615090436.13916-1-wangyanan55@huawei.com> <87mtrrihgl.wl-maz@kernel.org> From: "wangyanan (Y)" Message-ID: Date: Tue, 15 Jun 2021 18:08:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <87mtrrihgl.wl-maz@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.187.128] X-ClientProxiedBy: dggeme702-chm.china.huawei.com (10.1.199.98) To dggpemm500023.china.huawei.com (7.185.36.83) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/6/15 17:51, Marc Zyngier wrote: > On Tue, 15 Jun 2021 10:04:36 +0100, > Yanan Wang wrote: >> Commit 'b5331379bc626' >> (KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set) >> has converted the original function name 'unmap_stage2_range' to >> '__unmap_stage2_range', but leaving the corresponding function comment >> unadjusted. So fix it for code readability. >> >> Incidentally, we also tewak some comment identation by using tabs instead >> of spaces to be consistent with the other functions. >> >> Signed-off-by: Yanan Wang > Same as the previous patch. The first hunk is OK, as it fixes an > actual defect (wrong documentation), and adjusting the alignment is OK > as your changing the context. > > However, the last 3 are just noise. Please drop them. Ok, will drop them. Thanks, Yanan > Thanks, > > M. > >> --- >> arch/arm64/kvm/mmu.c | 18 +++++++++--------- >> 1 file changed, 9 insertions(+), 9 deletions(-) >> >> diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c >> index 5742ba765ff9..80040af147a2 100644 >> --- a/arch/arm64/kvm/mmu.c >> +++ b/arch/arm64/kvm/mmu.c >> @@ -151,11 +151,11 @@ static void *kvm_host_va(phys_addr_t phys) >> * does. >> */ >> /** >> - * unmap_stage2_range -- Clear stage2 page table entries to unmap a range >> - * @mmu: The KVM stage-2 MMU pointer >> - * @start: The intermediate physical base address of the range to unmap >> - * @size: The size of the area to unmap >> - * @may_block: Whether or not we are permitted to block >> + * __unmap_stage2_range -- Clear stage2 page table entries to unmap a range >> + * @mmu: The KVM stage-2 MMU pointer >> + * @start: The intermediate physical base address of the range to unmap >> + * @size: The size of the area to unmap >> + * @may_block: Whether or not we are permitted to block >> * >> * Clear a range of stage-2 mappings, lowering the various ref-counts. Must >> * be called while holding mmu_lock (unless for freeing the stage2 pgd before >> @@ -190,7 +190,7 @@ static void stage2_flush_memslot(struct kvm *kvm, >> >> /** >> * stage2_flush_vm - Invalidate cache for pages mapped in stage 2 >> - * @kvm: The struct kvm pointer >> + * @kvm: The struct kvm pointer >> * >> * Go through the stage 2 page tables and invalidate any cache lines >> * backing memory already mapped to the VM. >> @@ -527,7 +527,7 @@ static void stage2_unmap_memslot(struct kvm *kvm, >> >> /** >> * stage2_unmap_vm - Unmap Stage-2 RAM mappings >> - * @kvm: The struct kvm pointer >> + * @kvm: The struct kvm pointer >> * >> * Go through the memregions and unmap any regular RAM >> * backing memory already mapped to the VM. >> @@ -578,7 +578,7 @@ void kvm_free_stage2_pgd(struct kvm_s2_mmu *mmu) >> * @guest_ipa: The IPA at which to insert the mapping >> * @pa: The physical address of the device >> * @size: The size of the mapping >> - * @writable: Whether or not to create a writable mapping >> + * @writable: Whether or not to create a writable mapping >> */ >> int kvm_phys_addr_ioremap(struct kvm *kvm, phys_addr_t guest_ipa, >> phys_addr_t pa, unsigned long size, bool writable) >> @@ -616,7 +616,7 @@ int kvm_phys_addr_ioremap(struct kvm *kvm, phys_addr_t guest_ipa, >> >> /** >> * stage2_wp_range() - write protect stage2 memory region range >> - * @mmu: The KVM stage-2 MMU pointer >> + * @mmu: The KVM stage-2 MMU pointer >> * @addr: Start address of range >> * @end: End address of range >> */ >> -- >> 2.23.0 >> >>