Project

General

Profile

Feature #36803

Improve bhyve exit(3) error code

Added by Marcelo Araujo about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Marcelo Araujo
Category:
OS
Target version:
Estimated time:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

There are cases where exit(3) exits with error code 1 and makes difficult for bhyve wrappers to identify the real cause of the error.

Also bhyve exit status that indicates how the VM was terminated has a error number 1 that means 'powered off'.
So this issue here is created to identify where the exit(3) error codes can be improved using sysexit(3) and avoid collision with the 'exit status of VM when it is terminated'.

bhyve-ExitCode-2018-07-20.png (61 KB) bhyve-ExitCode-2018-07-20.png Michael Reynolds, 07/20/2018 11:52 AM
22199

History

#1 Updated by Marcelo Araujo about 2 years ago

  • Status changed from Unscreened to In Progress

#2 Updated by Marcelo Araujo about 2 years ago

  • Target version changed from 12.0 to 11.4

It is waiting for review: https://reviews.freebsd.org/D16161
If it lands with enough time for MFC, I will do.

#3 Updated by Marcelo Araujo about 2 years ago

Marcelo Araujo wrote:

It is waiting for review: https://reviews.freebsd.org/D16161
If it lands with enough time for MFC, I will do.

Landed on FreeBSD HEAD, and I'm doing a PR for freenas/os.

https://github.com/freenas/os/pull/130

#4 Updated by Marcelo Araujo about 2 years ago

  • Status changed from In Progress to Ready for Testing
  • Needs Doc changed from Yes to No

Marcelo Araujo wrote:

Marcelo Araujo wrote:

It is waiting for review: https://reviews.freebsd.org/D16161
If it lands with enough time for MFC, I will do.

Landed on FreeBSD HEAD, and I'm doing a PR for freenas/os.

https://github.com/freenas/os/pull/130

Commit done at: https://github.com/freenas/os/commit/c8ca6b483b2ceabce79a51e6bd2bb775172f78a7

#5 Updated by Dru Lavigne about 2 years ago

  • Subject changed from bhyve improve the exit(3) code return with sysexits(3). to Improve bhyve exit(3) error code
  • Target version changed from 11.4 to 11.2-BETA2
  • Needs Merging changed from Yes to No

#9 Updated by Dru Lavigne about 2 years ago

  • Status changed from Ready for Testing to Done
  • Needs QA changed from Yes to No

Also available in: Atom PDF