HomeFreeBSD

libvmmapi: Add vm_close()

Description

libvmmapi: Add vm_close()

Currently there is no way to safely free a vm structure without
leaking the fd. vm_destroy() closes the fd but also destroys the VM
whereas in some cases a VM needs to be opened (vm_open) and then
closed (vm_close).

Reviewed by: jhb
Sponsored by: vStack
Differential Revision: https://reviews.freebsd.org/D35073

(cherry picked from commit f0880ab791a510391a12f2ab7b01889b6774bca0)

Details

Provenance
gusev.vitaliy_gmail.comAuthored on Jun 30 2022, 9:21 PM
jhbCommitted on Jan 26 2023, 7:29 PM
Reviewer
jhb
Differential Revision
D35073: libvmm: add vm_close() to vmmapi library
Parents
rGb22b31b380e8: bhyve: Snapshot impovements for 'blockif' backend
Branches
Unknown
Tags
Unknown