From patchwork Fri Nov 29 03:19:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 11266671 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18786109A for ; Fri, 29 Nov 2019 03:20:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E3321215A5 for ; Fri, 29 Nov 2019 03:20:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WO5jq8+U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3321215A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=i0ckkgNqdyzUhfS1qNGDQ8FPYcuFPoYsnOw00iim+ZU=; b=WO5jq8+UFLyO1o /ti65LhVOwJvMuH3uV4OVHphHDYTaZbA4HCzmC8n4fjDYFxLtoppb/nqwuINsUuZiWcW6ZxleHygw 4oOK0zJuljeySSU8nnmk17lXGSAghH1/l4uy3cSxn4zo74ot16n75PkOavvun0mgKsXnztvUACfgw MrvbxHttM88dy5+I/LrdDzBv2xGD6/cBJOFnoQYkp3Fz488838EtqVllbdqJYu2Nb+FjCEdMZ3OBd KUZKgDEOvX7SsHLdk0yndofrk/AJ4GaNfp0WVIPFJDDG1FBI70TQuV2jzwwJhhU/oKkRr1uuAexMv DWyhiqDhVZVYiAYHI2/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaWpD-0003Sv-11; Fri, 29 Nov 2019 03:20:07 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaWpA-0002ao-4f for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 03:20:05 +0000 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 09800991634F43F95A93; Fri, 29 Nov 2019 11:19:54 +0800 (CST) Received: from huawei.com (10.175.105.18) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Fri, 29 Nov 2019 11:19:45 +0800 From: linmiaohe To: , , , , , , , , , , , , Subject: [PATCH] KVM: arm/arm64: Fix some obsolete comments Date: Fri, 29 Nov 2019 11:19:47 +0800 Message-ID: <1574997587-20842-1-git-send-email-linmiaohe@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.105.18] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191128_192004_362257_090A634C X-CRM114-Status: GOOD ( 11.49 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.191 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linmiaohe@huawei.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Miaohe Lin Fix various comments, including comment typo, and obsolete comments no longer make sense. Signed-off-by: Miaohe Lin --- virt/kvm/arm/arch_timer.c | 5 ++--- virt/kvm/arm/arm.c | 1 - virt/kvm/arm/vgic/vgic-its.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c index 73867f97040c..d8d2f4bec935 100644 --- a/virt/kvm/arm/arch_timer.c +++ b/virt/kvm/arm/arch_timer.c @@ -322,9 +322,8 @@ static void timer_emulate(struct arch_timer_context *ctx) } /* - * If the timer can fire now, we don't need to have a soft timer - * scheduled for the future. If the timer cannot fire at all, - * then we also don't need a soft timer. + * If the timer cannot fire at all, we don't need to have a + * soft timer scheduled for the future. */ if (!kvm_timer_irq_can_fire(ctx)) { soft_timer_cancel(&ctx->hrtimer); diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 8de4daf25097..7687663ab71b 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -525,7 +525,6 @@ static bool need_new_vmid_gen(struct kvm_vmid *vmid) /** * update_vmid - Update the vmid with a valid VMID for the current generation - * @kvm: The guest that struct vmid belongs to * @vmid: The stage-2 VMID information struct */ static void update_vmid(struct kvm_vmid *vmid) diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index 98c7360d9fb7..d64569b30b5c 100644 --- a/virt/kvm/arm/vgic/vgic-its.c +++ b/virt/kvm/arm/vgic/vgic-its.c @@ -2564,7 +2564,7 @@ static int vgic_its_restore_collection_table(struct vgic_its *its) } /** - * vgic_its_save_tables_v0 - Save the ITS tables into guest ARM + * vgic_its_save_tables_v0 - Save the ITS tables into guest RAM * according to v0 ABI */ static int vgic_its_save_tables_v0(struct vgic_its *its)