freebsd-dev/sys/amd64/vmm
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
..
amd vmm: don't free unallocated memory 2023-05-05 15:34:00 +02:00
intel vmm: don't free unallocated memory 2023-05-05 15:34:00 +02:00
io x86: Move i386 timerreg.h to x86 2023-04-20 19:42:59 +03:00
vmm_dev.c bhyve: Remove vmctx member from struct vm_snapshot_meta. 2023-03-24 11:49:06 -07:00
vmm_host.c
vmm_host.h
vmm_instruction_emul.c libvmmapi: Add a struct vcpu and use it in most APIs. 2023-03-24 11:49:06 -07:00
vmm_ioport.c vmm: Lookup vcpu pointers in vmmdev_ioctl. 2022-11-18 10:25:38 -08:00
vmm_ioport.h vmm: Lookup vcpu pointers in vmmdev_ioctl. 2022-11-18 10:25:38 -08:00
vmm_ktr.h
vmm_lapic.c vmm: Lookup vcpu pointers in vmmdev_ioctl. 2022-11-18 10:25:38 -08:00
vmm_lapic.h vmm: Lookup vcpu pointers in vmmdev_ioctl. 2022-11-18 10:25:38 -08:00
vmm_mem.c
vmm_mem.h
vmm_snapshot.c bhyve: Drop volatile qualifiers from snapshot code 2022-11-11 10:02:26 -05:00
vmm_stat.c vmm: fix missing ipi statistic 2023-03-17 13:50:08 +01:00
vmm_stat.h vmm: fix missing ipi statistic 2023-03-17 13:50:08 +01:00
vmm_util.c
vmm_util.h
vmm.c bhyve: fix restore of kernel structs 2023-02-28 13:37:53 +01:00
x86.c vmm: Expose some more AVX512 CPUID bits to guests 2023-04-25 13:35:14 -04:00
x86.h vmm: Pass vcpu instead of vm and vcpuid to APIs used from CPU backends. 2022-11-18 10:25:37 -08:00