freebsd-skq/usr.sbin/bhyve
Marcelo Araujo 989e062bea Improve bhyve exit(3) error code.
The bhyve(8) exit status indicates how the VM was terminated:

0	rebooted
1	powered off
2	halted
3	triple fault

The problem is when we have wrappers around bhyve that parses the exit
error code and gets an exit(1) for an error but interprets it as "powered off".
So to mitigate this issue and makes it less error prone for third part
applications, I have added a new exit code 4 that is "exited due to an error".

For now the bhyve(8) exit status are:
0	rebooted
1	powered off
2	halted
3	triple fault
4	exited due to an error

Reviewed by:	@jhb
MFC after:	2 weeks.
Sponsored by:	iXsystems Inc.
Differential Revision:	https://reviews.freebsd.org/D16161
2018-07-11 03:23:09 +00:00
..
acpi.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
acpi.h
ahci.h Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
atkbdc.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
atkbdc.h
bhyve.8 Improve bhyve exit(3) error code. 2018-07-11 03:23:09 +00:00
bhyvegc.c When this code was introduced at r300829 the author forgot to add 2018-06-13 04:00:21 +00:00
bhyvegc.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
bhyverun.c Improve bhyve exit(3) error code. 2018-07-11 03:23:09 +00:00
bhyverun.h
block_if.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
block_if.h - Add bhyve NVMe device emulation. 2018-07-05 03:33:58 +00:00
bootrom.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
bootrom.h Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
console.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
console.h Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
consport.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
dbgport.c Improve bhyve exit(3) error code. 2018-07-11 03:23:09 +00:00
dbgport.h
fwctl.c Improve bhyve exit(3) error code. 2018-07-11 03:23:09 +00:00
fwctl.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
gdb.c
gdb.h
inout.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
inout.h
ioapic.c
ioapic.h
iov.c
iov.h
Makefile - Add bhyve NVMe device emulation. 2018-07-05 03:33:58 +00:00
Makefile.depend
mem.c While I was investigating CID 1194192 related with a resource leak on mrp memory 2018-06-13 11:49:34 +00:00
mem.h Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
mevent_test.c Improve bhyve exit(3) error code. 2018-07-11 03:23:09 +00:00
mevent.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
mevent.h
mptbl.c
mptbl.h
pci_ahci.c
pci_e82545.c Improve bhyve exit(3) error code. 2018-07-11 03:23:09 +00:00
pci_emul.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
pci_emul.h
pci_fbuf.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
pci_hostbridge.c
pci_irq.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
pci_irq.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
pci_lpc.c
pci_lpc.h
pci_nvme.c - Add bhyve NVMe device emulation. 2018-07-05 03:33:58 +00:00
pci_passthru.c
pci_uart.c
pci_virtio_block.c Fix style(9) space and tab. 2018-07-10 05:36:32 +00:00
pci_virtio_console.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
pci_virtio_net.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
pci_virtio_rnd.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
pci_virtio_scsi.c
pci_xhci.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
pci_xhci.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
pm.c
post.c
ps2kbd.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
ps2kbd.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
ps2mouse.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
ps2mouse.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
rfb.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
rfb.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
rtc.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
rtc.h
smbiostbl.c
smbiostbl.h
sockstream.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
sockstream.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
spinup_ap.c
spinup_ap.h
task_switch.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
uart_emul.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
uart_emul.h
usb_emul.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
usb_emul.h Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
usb_mouse.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
vga.c Add SPDX tags to bhyve(8). 2018-06-13 03:22:08 +00:00
vga.h Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
virtio.c Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
virtio.h Fix style(9) space vs tab. 2018-06-14 01:34:53 +00:00
xmsr.c
xmsr.h