LoongArch: KVM: Set reserved bits as zero in CPUCFG
authorBibo Mao <maobibo@loongson.cn>
Wed, 6 Mar 2024 01:12:13 +0000 (09:12 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 6 Mar 2024 01:12:13 +0000 (09:12 +0800)
commitaebd3bd586c67a29ddbe7be7db06b45754477b52
treed7f10a42951cd060f61422b76c4c3f6d280d9a5c
parent90d35da658da8cff0d4ecbb5113f5fac9d00eb72
LoongArch: KVM: Set reserved bits as zero in CPUCFG

Supported CPUCFG information comes from function _kvm_get_cpucfg_mask().
A bit should be zero if it is reserved by HW or if it is not supported
by KVM.

Also LoongArch software page table walk feature defined in CPUCFG2_LSPW
is supported by KVM, it should be enabled by default.

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