git: 908a9dc02007 - main - arm64: Add a missing vm_disable_vcpu_creation() call in vmmdev_destroy()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Aug 2024 18:58:32 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=908a9dc020071947fe727ef11a35e78bf76a6b81
commit 908a9dc020071947fe727ef11a35e78bf76a6b81
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-08-26 18:41:34 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-08-26 18:41:34 +0000
arm64: Add a missing vm_disable_vcpu_creation() call in vmmdev_destroy()
This brings arm64 in sync with amd64, which had diverged a bit after the
arm64 code was forked.
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D46439
---
sys/arm64/vmm/vmm_dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/arm64/vmm/vmm_dev.c b/sys/arm64/vmm/vmm_dev.c
index c3c6dcc87d88..28877739e2ce 100644
--- a/sys/arm64/vmm/vmm_dev.c
+++ b/sys/arm64/vmm/vmm_dev.c
@@ -767,6 +767,7 @@ vmmdev_destroy(void *arg)
struct devmem_softc *dsc;
int error __diagused;
+ vm_disable_vcpu_creation(sc->vm);
error = vcpu_lock_all(sc);
KASSERT(error == 0, ("%s: error %d freezing vcpus", __func__, error));
vm_unlock_vcpus(sc->vm);