]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Add ucall test support for LoongArch
authorBibo Mao <maobibo@loongson.cn>
Tue, 20 May 2025 12:20:26 +0000 (20:20 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 20 May 2025 12:20:26 +0000 (20:20 +0800)
commit304b93b1a044de4050651e6bcb931581f9e0386f
treeb7ed5ae41e2746f906e10fd26c6c35619c52db74
parent2ebf31d59f583449422f4b2dad59b0130e750117
KVM: selftests: Add ucall test support for LoongArch

Add ucall test support for LoongArch, ucall method on LoongArch uses
undefined mmio area. It will cause vCPU exiting to hypervisor so that
hypervisor can communicate with vCPU.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
tools/testing/selftests/kvm/include/loongarch/ucall.h [new file with mode: 0644]
tools/testing/selftests/kvm/lib/loongarch/ucall.c [new file with mode: 0644]