LoongArch: KVM: Allow to access HW timer CSR registers always
authorBibo Mao <maobibo@loongson.cn>
Tue, 19 Dec 2023 02:48:27 +0000 (10:48 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 19 Dec 2023 02:48:27 +0000 (10:48 +0800)
commit0d2abe67029644741bf7400b0d00c2faa3e1c455
treefb74f8051e17c8e8e6345d82307d89836b1e04ca
parent161267320158920a601e40d83fdac60bcaa2acb5
LoongArch: KVM: Allow to access HW timer CSR registers always

Currently HW timer CSR registers are allowed to access before entering
to vm and disabled if switch to SW timer in host mode, instead it is not
necessary to do so. HW timer CSR registers can be accessed always, it
is nothing to do with whether it is in vm mode or host mode. This patch
removes the limitation.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/main.c
arch/loongarch/kvm/timer.c