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

Details

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