vmm.c:900:3: error: implicit declaration of function 'x86_send_ipi' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
-/* $OpenBSD: vmm.c,v 1.329 2022/11/08 19:38:34 dlg Exp $ */
+/* $OpenBSD: vmm.c,v 1.330 2022/11/09 06:32:58 stsp Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
{
struct vm *vm;
struct vcpu *vcpu;
+#ifdef MULTIPROCESSOR
struct cpu_info *ci;
+#endif
int error, ret = 0;
/* Find the desired VM */
goto out;
}
+#ifdef MULTIPROCESSOR
vcpu->vc_intr = vip->vip_intr;
ci = READ_ONCE(vcpu->vc_curcpu);
if (ci != NULL)
x86_send_ipi(ci, X86_IPI_NOP);
+#endif
refcnt_rele_wake(&vcpu->vc_refcnt);
out: