Skip to content

Commit 8b2d01f

Browse files
enkerewpochenhuacai
authored andcommitted
LoongArch: KVM: Fix multiple typos of KVM code
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>
1 parent bd51834 commit 8b2d01f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/loongarch/kvm/intc/ipi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int send_ipi_data(struct kvm_vcpu *vcpu, gpa_t addr, uint64_t data)
111111
ret = kvm_io_bus_read(vcpu, KVM_IOCSR_BUS, addr, sizeof(val), &val);
112112
srcu_read_unlock(&vcpu->kvm->srcu, idx);
113113
if (unlikely(ret)) {
114-
kvm_err("%s: : read date from addr %llx failed\n", __func__, addr);
114+
kvm_err("%s: : read data from addr %llx failed\n", __func__, addr);
115115
return ret;
116116
}
117117
/* 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)
127127
ret = kvm_io_bus_write(vcpu, KVM_IOCSR_BUS, addr, sizeof(val), &val);
128128
srcu_read_unlock(&vcpu->kvm->srcu, idx);
129129
if (unlikely(ret))
130-
kvm_err("%s: : write date to addr %llx failed\n", __func__, addr);
130+
kvm_err("%s: : write data to addr %llx failed\n", __func__, addr);
131131

132132
return ret;
133133
}

arch/loongarch/kvm/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ int kvm_arch_enable_virtualization_cpu(void)
296296
/*
297297
* Enable virtualization features granting guest direct control of
298298
* certain features:
299-
* GCI=2: Trap on init or unimplement cache instruction.
299+
* GCI=2: Trap on init or unimplemented cache instruction.
300300
* TORU=0: Trap on Root Unimplement.
301301
* CACTRL=1: Root control cache.
302-
* TOP=0: Trap on Previlege.
302+
* TOP=0: Trap on Privilege.
303303
* TOE=0: Trap on Exception.
304304
* TIT=0: Trap on Timer.
305305
*/

0 commit comments

Comments
 (0)