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

Details

Provenance
gusev.vitaliy_gmail.comAuthored on Jun 30 2022, 9:21 PM
jhbCommitted on Jun 30 2022, 9:21 PM
Reviewer
jhb
Differential Revision
D35073: libvmm: add vm_close() to vmmapi library
Parents
rG87f49967d324: Link pwd.db.5 and spwd.db.5 to passwd.5
Branches
Unknown
Tags
Unknown