KVM: arm/arm64: vgic: Fix some comments typo
authorZenghui Yu <yuzenghui@huawei.com>
Tue, 29 Oct 2019 07:19:18 +0000 (15:19 +0800)
committerMarc Zyngier <maz@kernel.org>
Tue, 29 Oct 2019 13:47:32 +0000 (13:47 +0000)
Fix various comments, including wrong function names, grammar mistakes
and specification references.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20191029071919.177-3-yuzenghui@huawei.com
include/kvm/arm_vgic.h
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic-v4.c

index f66a02d..9d53f54 100644 (file)
@@ -240,7 +240,7 @@ struct vgic_dist {
         * Contains the attributes and gpa of the LPI configuration table.
         * Since we report GICR_TYPER.CommonLPIAff as 0b00, we can share
         * one address across all redistributors.
-        * GICv3 spec: 6.1.2 "LPI Configuration tables"
+        * GICv3 spec: IHI 0069E 6.1.1 "LPI Configuration tables"
         */
        u64                     propbaser;
 
index 48307a9..e69c538 100644 (file)
@@ -357,7 +357,7 @@ retry:
 }
 
 /**
- * vgic_its_save_pending_tables - Save the pending tables into guest RAM
+ * vgic_v3_save_pending_tables - Save the pending tables into guest RAM
  * kvm lock and all vcpu lock must be held
  */
 int vgic_v3_save_pending_tables(struct kvm *kvm)
index 7e1f320..0965fb0 100644 (file)
@@ -281,7 +281,7 @@ int kvm_vgic_v4_set_forwarding(struct kvm *kvm, int virq,
 
        mutex_lock(&its->its_lock);
 
-       /* Perform then actual DevID/EventID -> LPI translation. */
+       /* Perform the actual DevID/EventID -> LPI translation. */
        ret = vgic_its_resolve_lpi(kvm, its, irq_entry->msi.devid,
                                   irq_entry->msi.data, &irq);
        if (ret)