diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-03-28 06:28:48 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-03-28 06:28:48 +0000 |
commit | d8538b2e116b10f8a6b044eca285333305264169 (patch) | |
tree | 6ec0b5f80b63cfe79216b14e7f14cca2c9b04822 /sys/arch | |
parent | 0b4936cc883cc79753b88bb3314a40f27d3b0af0 (diff) |
Put call to vmx_remote_vmclear() under #ifdef MULTIPROCESSOR
to unbreak build of amd64 GENERIC
makes sense to jsing
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index c6477d4cbf2..5b2aa6ee38a 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.304 2022/03/28 00:22:20 dv Exp $ */ +/* $OpenBSD: vmm.c,v 1.305 2022/03/28 06:28:47 tb Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -494,6 +494,7 @@ vmm_quiesce_vmx(void) continue; } +#ifdef MULTIPROCESSOR if (vcpu->vc_last_pcpu != curcpu()) { /* Remote cpu vmclear via ipi. */ err = vmx_remote_vmclear(vcpu->vc_last_pcpu, @@ -502,7 +503,9 @@ vmm_quiesce_vmx(void) printf("%s: failed to remote vmclear " "vcpu %d of vm %d\n", __func__, vcpu->vc_id, vm->vm_id); - } else { + } else +#endif + { /* Local cpu vmclear instruction. */ if ((err = vmclear(&vcpu->vc_control_pa))) printf("%s: failed to locally vmclear " |