HomeFreeBSD

vm_kern: Avoid sign extension in the KVA_QUANTUM definition

Description

vm_kern: Avoid sign extension in the KVA_QUANTUM definition

Otherwise, on a powerpc64 NUMA system with hashed page tables, the
first-level superpage reservation size is large enough that the value of
the kernel KVA arena import quantum, KVA_NUMA_IMPORT_QUANTUM, is
negative and gets sign-extended when passed to vmem_set_import(). This
results in a boot-time hang on such platforms.

Reported by: bdragon
MFC after: 3 days

Details

Provenance
markjAuthored on Feb 22 2021, 8:50 PM
Parents
rG5ce2d4a1c292: bhyve/snapshot: drop mkdir when creating the unix domain socket
Branches
Unknown
Tags
Unknown