Date: Fri, 9 Dec 2022 18:31:39 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: af3b48e10198 - main - vmm: Free vCPUs when destroying them. Message-ID: <202212091831.2B9IVdgX024127@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=af3b48e101986fb0840739f8c4bb3195e78008b1 commit af3b48e101986fb0840739f8c4bb3195e78008b1 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-12-09 18:27:05 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-12-09 18:27:05 +0000 vmm: Free vCPUs when destroying them. Reported by: andrew Reviewed by: corvink, andrew, markj Differential Revision: https://reviews.freebsd.org/D37649 --- sys/amd64/vmm/vmm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 7e8a5c939440..169109e8df6e 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -341,6 +341,7 @@ vcpu_cleanup(struct vcpu *vcpu, bool destroy) vmm_stat_free(vcpu->stats); fpu_save_area_free(vcpu->guestfpu); vcpu_lock_destroy(vcpu); + free(vcpu, M_VM); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212091831.2B9IVdgX024127>