freebsd-dev/sys/amd64
Corvin Köhne b10e100d16
vmm: don't free unallocated memory
If vmx or svm is disabled in BIOS or the device isn't supported by vmm,
modinit won't allocate these state save areas. As kmem_free panics when
passing a NULL pointer to it, loading the vmm kernel module causes a
panic too.

PR:			271251
Reviewed by:		markj
Fixes:			74ac712f72 ("vmm: Dynamically allocate a couple of per-CPU state save areas")
MFC after:		1 week
Sponsored by:		Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D39974
2023-05-05 15:34:00 +02:00
..
acpica x86: Move i386 timerreg.h to x86 2023-04-20 19:42:59 +03:00
amd64 pmap_{un}map_io_transient: Use bool instead of boolean_t. 2023-05-04 12:29:48 -07:00
conf sys/amd64/conf/FIRECRACKER: typo (compatiblity) 2023-05-05 01:23:08 +01:00
ia32 amd64 ia32 vdso: always define some __vdso_ symbols 2023-02-09 04:36:40 +02:00
include pmap_{un}map_io_transient: Use bool instead of boolean_t. 2023-05-04 12:29:48 -07:00
linux linux(4): Regen for mknod syscall changes 2023-04-28 11:55:04 +03:00
linux32 linux(4): Make struct stat64 to match Linux actual one 2023-04-28 11:55:04 +03:00
pci
sgx sgx: Remove unused variable. 2022-04-07 17:01:28 -07:00
vmm vmm: don't free unallocated memory 2023-05-05 15:34:00 +02:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00