LoongArch: KVM: Implement kvm hardware enable, disable interface
authorTianrui Zhao <zhaotianrui@loongson.cn>
Mon, 2 Oct 2023 02:01:20 +0000 (10:01 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 2 Oct 2023 02:01:20 +0000 (10:01 +0800)
commit0d0df3c99d4fbc6561b0addb094e52f19f3c7baa
tree822c2e4e67c4c85b1a1ea68ae0fa7460f3497c25
parent2bd6ac68726131da32ace9717aa63ff68cf6605c
LoongArch: KVM: Implement kvm hardware enable, disable interface

Implement kvm hardware enable, disable interface, setting the
guest config register to enable virtualization features when called
the interface.

Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Tested-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/main.c