diff mbox series

[1/3] LoongArch: KVM: Add stub for kvm_arch_vcpu_preempted_in_kernel

Message ID 20250224095618.1436016-2-maobibo@loongson.cn (mailing list archive)
State New
Headers show
Series Add perf event support for guest VM | expand

Commit Message

bibo mao Feb. 24, 2025, 9:56 a.m. UTC
Since Pause-Loop Exiting is not supported by LoongArch hardware, nor
pv spinlock feature is not supported, function kvm_vcpu_on_spin() is
not used. Function kvm_arch_vcpu_preempted_in_kernel() is defined as
stub function here since it is only called by unused function
kvm_vcpu_on_spin().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
 arch/loongarch/kvm/vcpu.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/arch/loongarch/kvm/vcpu.c b/arch/loongarch/kvm/vcpu.c
index 20f941af3e9e..3318a55a0699 100644
--- a/arch/loongarch/kvm/vcpu.c
+++ b/arch/loongarch/kvm/vcpu.c
@@ -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;