LoongArch: KVM: Fix multiple typos of KVM code
authorYulong Han <wheatfox17@icloud.com>
Thu, 24 Apr 2025 12:15:52 +0000 (20:15 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 26 Apr 2025 01:58:13 +0000 (09:58 +0800)
Fix multiple typos inside arch/loongarch/kvm.

Cc: stable@vger.kernel.org
Reviewed-by: Yuli Wang <wangyuli@uniontech.com>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Yulong Han <wheatfox17@icloud.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/intc/ipi.c
arch/loongarch/kvm/main.c

index 93f4acd..fe734dc 100644 (file)
@@ -111,7 +111,7 @@ static int send_ipi_data(struct kvm_vcpu *vcpu, gpa_t addr, uint64_t data)
                ret = kvm_io_bus_read(vcpu, KVM_IOCSR_BUS, addr, sizeof(val), &val);
                srcu_read_unlock(&vcpu->kvm->srcu, idx);
                if (unlikely(ret)) {
-                       kvm_err("%s: : read date from addr %llx failed\n", __func__, addr);
+                       kvm_err("%s: : read data from addr %llx failed\n", __func__, addr);
                        return ret;
                }
                /* Construct the mask by scanning the bit 27-30 */
@@ -127,7 +127,7 @@ static int send_ipi_data(struct kvm_vcpu *vcpu, gpa_t addr, uint64_t data)
        ret = kvm_io_bus_write(vcpu, KVM_IOCSR_BUS, addr, sizeof(val), &val);
        srcu_read_unlock(&vcpu->kvm->srcu, idx);
        if (unlikely(ret))
-               kvm_err("%s: : write date to addr %llx failed\n", __func__, addr);
+               kvm_err("%s: : write data to addr %llx failed\n", __func__, addr);
 
        return ret;
 }
index d165cd3..80ea63d 100644 (file)
@@ -296,10 +296,10 @@ int kvm_arch_enable_virtualization_cpu(void)
        /*
         * Enable virtualization features granting guest direct control of
         * certain features:
-        * GCI=2:       Trap on init or unimplement cache instruction.
+        * GCI=2:       Trap on init or unimplemented cache instruction.
         * TORU=0:      Trap on Root Unimplement.
         * CACTRL=1:    Root control cache.
-        * TOP=0:       Trap on Previlege.
+        * TOP=0:       Trap on Privilege.
         * TOE=0:       Trap on Exception.
         * TIT=0:       Trap on Timer.
         */