LoongArch: KVM: Implement kvm module related 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)
commit2bd6ac68726131da32ace9717aa63ff68cf6605c
treea3fd2bfe2e90c2191b176aa5b01bc9f01a4c7cbe
parentb37e6b680e3a4fad40d8c7b92cfe9b2806c6248e
LoongArch: KVM: Implement kvm module related interface

Implement LoongArch kvm module init, module exit interface, using kvm
context to save the vpid info and vcpu world switch interface pointer.

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 [new file with mode: 0644]