Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2023 22:12:24 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c44d097dcf92 - stable/13 - vmm: Free vCPUs when destroying them.
Message-ID:  <202301262212.30QMCOao022649@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c44d097dcf9293385441309c3e7a4b991cf43422

commit c44d097dcf9293385441309c3e7a4b991cf43422
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-09 18:27:05 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 22:07:38 +0000

    vmm: Free vCPUs when destroying them.
    
    Reported by:    andrew
    Reviewed by:    corvink, andrew, markj
    Differential Revision:  https://reviews.freebsd.org/D37649
    
    (cherry picked from commit af3b48e101986fb0840739f8c4bb3195e78008b1)
---
 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 530c90c9804d..f0ee159dcbb9 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?202301262212.30QMCOao022649>