From: dlg Date: Wed, 9 Nov 2022 10:19:20 +0000 (+0000) Subject: vmm on !MULTIPROCESSOR kernels should still mark vpus with pending intrs. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7c369f6739e9c23955a95a728f0d92f3898ac62e;p=openbsd vmm on !MULTIPROCESSOR kernels should still mark vpus with pending intrs. the #ifdef MULTIPROCESSOR was a little broad. still grateful to anton and stsp for unbreaking the tree though. --- diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index 80256ed79a2..7ba57a463cb 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.330 2022/11/09 06:32:58 stsp Exp $ */ +/* $OpenBSD: vmm.c,v 1.331 2022/11/09 10:19:20 dlg Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -896,8 +896,8 @@ vm_intr_pending(struct vm_intr_params *vip) goto out; } -#ifdef MULTIPROCESSOR vcpu->vc_intr = vip->vip_intr; +#ifdef MULTIPROCESSOR ci = READ_ONCE(vcpu->vc_curcpu); if (ci != NULL) x86_send_ipi(ci, X86_IPI_NOP);