]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: KVM: Add hypercall service support for usermode VMM
authorBibo Mao <maobibo@loongson.cn>
Mon, 13 Jan 2025 13:37:17 +0000 (21:37 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 13 Jan 2025 13:37:17 +0000 (21:37 +0800)
commit2737dee1067c2fc02256b2b15dab158c5e840568
treeda74d339aabb2fc49b6d50806efa0802cebd25b9
parent4d38d0416ece7bab532e89a49f988a9954f12ee9
LoongArch: KVM: Add hypercall service support for usermode VMM

Some VMMs provides special hypercall service in usermode, KVM should not
handle the usermode hypercall service, thus pass it to usermode, let the
usermode VMM handle it.

Here a new code KVM_HCALL_CODE_USER_SERVICE is added for the user-mode
hypercall service, KVM lets all six registers visible to usermode VMM.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/kvm_host.h
arch/loongarch/include/asm/kvm_para.h
arch/loongarch/include/asm/kvm_vcpu.h
arch/loongarch/include/uapi/asm/kvm_para.h
arch/loongarch/kvm/exit.c
arch/loongarch/kvm/vcpu.c