Skip to content

Commit

Permalink
link_elf_obj: Colour VM objects
Browse files Browse the repository at this point in the history
This will cause the VM to back sufficiently large .text sections, such
as those in zfs.ko or amdgpu.ko on amd64, with superpage mappings when
possible.

Reviewed by:	alc, kib
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26802
  • Loading branch information
markjdb committed Oct 19, 2020
1 parent 27b506f commit 5f80923
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/kern/link_elf_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,9 @@ link_elf_load_file(linker_class_t cls, const char *filename,
error = ENOMEM;
goto out;
}
#if VM_NRESERVLEVEL > 0
vm_object_color(ef->object, 0);
#endif

/*
* In order to satisfy amd64's architectural requirements on the
Expand Down

0 comments on commit 5f80923

Please sign in to comment.