Commit 8b2d01fe authored by Yulong Han's avatar Yulong Han Committed by Huacai Chen
Browse files

LoongArch: KVM: Fix multiple typos of KVM code



Fix multiple typos inside arch/loongarch/kvm.

Cc: stable@vger.kernel.org
Reviewed-by: default avatarYuli Wang <wangyuli@uniontech.com>
Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
Signed-off-by: default avatarYulong Han <wheatfox17@icloud.com>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent bd51834d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
+2 −2
Original line number Diff line number Diff line
@@ -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.
	 */