Do not constrain allocations for doublefault, boot, and mce stacks.

All these stacks are used only once (doublefault, boot) or very rare
(mce).

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D21320
This commit is contained in:
Konstantin Belousov 2019-08-24 15:28:40 +00:00
parent cb0e752f8e
commit ec9662fe61

View File

@ -475,13 +475,11 @@ native_start_all_aps(void)
domain = acpi_pxm_get_cpu_locality(apic_id);
#endif
/* allocate and set up an idle stack data page */
bootstacks[cpu] = (void *)kmem_malloc_domainset(
DOMAINSET_FIXED(domain), kstack_pages * PAGE_SIZE,
bootstacks[cpu] = (void *)kmem_malloc(kstack_pages * PAGE_SIZE,
M_WAITOK | M_ZERO);
doublefault_stack = (char *)kmem_malloc_domainset(
DOMAINSET_FIXED(domain), PAGE_SIZE, M_WAITOK | M_ZERO);
mce_stack = (char *)kmem_malloc_domainset(
DOMAINSET_FIXED(domain), PAGE_SIZE, M_WAITOK | M_ZERO);
doublefault_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK |
M_ZERO);
mce_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO);
nmi_stack = (char *)kmem_malloc_domainset(
DOMAINSET_FIXED(domain), PAGE_SIZE, M_WAITOK | M_ZERO);
dbg_stack = (char *)kmem_malloc_domainset(