From 5c7422edec92a00f94e549722d71db846b850d21 Mon Sep 17 00:00:00 2001 From: dv Date: Sun, 5 Sep 2021 16:36:34 +0000 Subject: [PATCH] vmm(4): raise vm pool ipl to IPL_MPFLOOR Similar to the recent change by mpi in revision 1.288, commitid: A4zhVhOoHAIpRGBJ, raise the ipl level of the vm_pool to IPL_MPFLOOR to prevent lock ordering issues. ok mpi@ --- 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 51305111cf2..1ee57d10d15 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.291 2021/09/05 13:13:31 dv Exp $ */ +/* $OpenBSD: vmm.c,v 1.292 2021/09/05 16:36:34 dv Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -428,7 +428,7 @@ vmm_attach(struct device *parent, struct device *self, void *aux) bzero(&sc->vpids, sizeof(sc->vpids)); rw_init(&sc->vpid_lock, "vpid"); - pool_init(&vm_pool, sizeof(struct vm), 0, IPL_NONE, PR_WAITOK, + pool_init(&vm_pool, sizeof(struct vm), 0, IPL_MPFLOOR, PR_WAITOK, "vmpool", NULL); pool_init(&vcpu_pool, sizeof(struct vcpu), 64, IPL_MPFLOOR, PR_WAITOK, "vcpupl", NULL); -- 2.20.1