HomeFreeBSD

libvmm: constify vm_get_name()

Description

libvmm: constify vm_get_name()

Allows callers of vm_get_name() to retrieve the vm name without having
to allocate a buffer.

While in the vicinity, do minor cleanup in vm_snapshot_basic_metadata().

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D34290

(cherry picked from commit 3efc45f34e13c63cb37a77a67fea39937004b75a)

Details

Provenance
rewAuthored on Mar 18 2022, 5:26 AM
jhbCommitted on Jan 26 2023, 6:48 PM
Reviewer
jhb
Differential Revision
D34290: libvmm: use a const char pointer for vm name in struct vmctx
Parents
rGa71480028333: bhyvectl: drop vm_get_name()
Branches
Unknown
Tags
Unknown