Skip to content

Commit 6a16e44

Browse files
bibo-maochenhuacai
authored andcommitted
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>
1 parent 062ac0c commit 6a16e44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/loongarch/kvm/vcpu.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,11 @@ bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
364364
return false;
365365
}
366366

367+
bool kvm_arch_vcpu_preempted_in_kernel(struct kvm_vcpu *vcpu)
368+
{
369+
return false;
370+
}
371+
367372
vm_fault_t kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf)
368373
{
369374
return VM_FAULT_SIGBUS;

0 commit comments

Comments
 (0)