From nobody Fri Dec 09 18:31:39 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NTKNq7440z4jwn8; Fri, 9 Dec 2022 18:31:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NTKNq4xqLz3LjR; Fri, 9 Dec 2022 18:31:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670610699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jhWMY8LHAXVEcTuAu06KaLetsyjyWzu1ud4ya5opAZg=; b=YYy8/HZyQZMKgrZhY3yLPbVZ3dgWwfyysSwIlbui++3gkCN044lv4tKJd+NcF1s0OThUFW fSmE8xLHh0M0xKbSEbRPc6fqOuZI1kSwSED3smYhwZyu1/ke0pg/nRVT5YsduAnR2TwEa5 mhc+F56ZzyYg+GENXNlHLG52IAU4CQ068eaDdY7RJu68yML33lE545hHRm0doiaT+4ecvO KyP0x4XdLdkAOQSzdw2shN1+NBfGfknL6NvTKSG3a1s+CJnIHRuqapTVjaetmHDEJlbi+l nG4lZA9ofhrVm5iF2FLfJIvn3C98IdHLCznsdgHAHgzIMiyshtm31Oz4Fod+Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670610699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jhWMY8LHAXVEcTuAu06KaLetsyjyWzu1ud4ya5opAZg=; b=QvYfM/0JoXnmVbMyCmJUf+AJFpqOuqShVIR7a25RXESRdxOAPzyP9El/yTJBi3KYrojbTr PlsBNLNxV0+fcsaudfcbcnSzFetV7CD5EZfnOeuXUc6QSKutcsCrNKE63BrY7mTzcF0NNx drWXtzONN/uPT5VifxKMu9zEj6fcEkL3KBPSyVpYcHCElFRBjRXK1vZpXHNxo2DXBYB3CW niFRvViPAoHwG8PLWL0GnlldWCi2r/HG+/skYBRZ5QHZ3iMVmWamXKJYD4TdlHW8kKkxZY UoiyMPKKfWO/DVPaJeUsXgGwail5x8O1FTmqxLKs4CVCd4WZngVqY6pieyt6og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670610699; a=rsa-sha256; cv=none; b=vIJP3HlLTd79iZCrmWK2OYe7H5Q+35vS4ul7w3/SDugf6YCA3A8Ib71L6ixgTK4OvwFQ+V UExzT1NdsIEjCOLW+Kd6veQR1UWF8hzPi5XUIE7djD9buSP1fK04nOTbjjtSn75nV97FlN 45lRJ94VQHIkboW06wqaWDsiI8Jpk7ynQTf6co9Zmxd8q2TkBi0xmbpDTC1GLqi6w5W41X ExUu2bq7Awq6kpiYUskUxo4bibWScNKJqybGtVjujlbZjd9LK04oIxoRgAkFJhaKzF3KfL WkZN8PkZeK85Y4NFprZKEWHAfzpKqAGDYXW8paY1jYtNjbCCUHBnDFSqikItLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NTKNq3zKVzmDN; Fri, 9 Dec 2022 18:31:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B9IVd6Y024128; Fri, 9 Dec 2022 18:31:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B9IVdgX024127; Fri, 9 Dec 2022 18:31:39 GMT (envelope-from git) Date: Fri, 9 Dec 2022 18:31:39 GMT Message-Id: <202212091831.2B9IVdgX024127@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: af3b48e10198 - main - vmm: Free vCPUs when destroying them. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af3b48e101986fb0840739f8c4bb3195e78008b1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=af3b48e101986fb0840739f8c4bb3195e78008b1 commit af3b48e101986fb0840739f8c4bb3195e78008b1 Author: John Baldwin AuthorDate: 2022-12-09 18:27:05 +0000 Commit: John Baldwin 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); } }