LoongArch: KVM: Add stub for kvm_arch_vcpu_preempted_in_kernel()

Pause-Loop Exiting is not supported by LoongArch hardware, nor is pv
spinlock feature. So function kvm_vcpu_on_spin() is not used. Function
kvm_arch_vcpu_preempted_in_kernel() is defined as a stub function here
since it is only called by unused function kvm_vcpu_on_spin().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
Bibo Mao
2025-03-18 16:48:08 +08:00
committed by Huacai Chen
parent 062ac0cb83
commit 6a16e448e5

View File

@@ -364,6 +364,11 @@ bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
return false;
}
bool kvm_arch_vcpu_preempted_in_kernel(struct kvm_vcpu *vcpu)
{
return false;
}
vm_fault_t kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf)
{
return VM_FAULT_SIGBUS;