HomeFreeBSD

bhyvectl: print a better error message when vm_open() fails

Description

bhyvectl: print a better error message when vm_open() fails

Use errno to print a more descriptive error message when vm_open() fails

libvmm: preserve errno when vm_device_open() fails

vm_destroy() squashes errno by making a dive into sysctlbyname() - we
can safely skip vm_destroy() here since it's not doing any critical
clean up at this point. Replace vm_destroy() with a free() call.

PR: 250671
MFC after: 3 days
Submitted by: marko@apache.org
Reviewed by: grehan
Differential Revision: https://reviews.freebsd.org/D29109

Details

Provenance
rewAuthored on Mar 7 2021, 6:19 AM
Reviewer
grehan
Differential Revision
D29109: bhyvectl: print a better error message when vm_open fails
Parents
rG2fc640d5bc0a: poly1305: Chase xform_poly1305.h removal
Branches
Unknown
Tags
Unknown