opnsense-src/sys/amd64
Mark Johnston 4a46ece6c6 vmm: Fix error handling in vmm_handler()
In commit a97f683fe3 I didn't add code to remove the vmmctl device
when vmm.ko is unloaded, so it would persist and prevent vmm.ko from
being re-loaded.

Extend vmmdev_cleanup() to destroy the vmmctl cdev.  Also call
vmmdev_cleanup() if vmm_init() fails.

Reviewed by:	corvink, andrew
Fixes:		a97f683fe3 ("vmm: Add a device file interface for creating and destroying VMs")
Differential Revision:	https://reviews.freebsd.org/D48269
2025-01-09 14:49:34 +00:00
..
acpica Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
amd64 cpu_set_upcall / linux_clone_thread: Remove calls to cpu_thread_clean 2025-01-03 11:03:08 -05:00
conf Revert "nvme: Separate total failures from I/O failures" 2024-08-15 21:29:53 -06:00
ia32 freebsd32: struct siginfo32 -> struct __siginfo32 2024-03-19 23:13:26 +00:00
include amd64/vmm: Rename vm_get_vmspace() to vm_vmspace() 2025-01-07 02:16:04 +00:00
linux sysent: regen for typo fix 2024-10-22 19:21:26 +01:00
linux32 sysent: regen for typo fix 2024-10-22 19:21:26 +01:00
pci Remove stray whitespaces from sys/amd64/ 2024-09-21 07:05:46 -06:00
sgx Remove stray whitespaces from sys/amd64/ 2024-09-21 07:05:46 -06:00
vmm vmm: Fix error handling in vmm_handler() 2025-01-09 14:49:34 +00:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00