From eebe838b8cff4fbd899b7d3e09d88a30923769c2 Mon Sep 17 00:00:00 2001 From: dv Date: Mon, 29 Nov 2021 15:55:36 +0000 Subject: [PATCH] vmm(4): bump remote vmclear spinout ticks Older/slower hosts could easily hit the cap under load. Set it to the same value we use in mplock_debug. ok mlarkin@ --- sys/arch/amd64/amd64/vmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index 2535558cce5..8e588f7dcbd 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.295 2021/11/22 12:55:40 dv Exp $ */ +/* $OpenBSD: vmm.c,v 1.296 2021/11/29 15:55:36 dv Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -1368,7 +1368,7 @@ vmclear_on_cpu(struct cpu_info *ci) static int vmx_remote_vmclear(struct cpu_info *ci, struct vcpu *vcpu) { - int ret = 0, nticks = 100000; + int ret = 0, nticks = 200000000; rw_enter_write(&ci->ci_vmcs_lock); atomic_swap_ulong(&ci->ci_vmcs_pa, vcpu->vc_control_pa); -- 2.20.1