summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorLongpeng <longpeng2@huawei.com>2021-11-07 22:09:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-17 16:11:09 +0100
commitf6bdc0aafe88cf4c727e7bb00da1f480ecd80bee (patch)
tree74c4010abe5c7b84631311a34e1d0efa6cc36551 /net/unix/af_unix.c
parentdc74e8cf2324ad61b050a55ec0ffa9db6f4fce33 (diff)
nitro_enclaves: Merge contiguous physical memory regions
There can be cases when there are more memory regions that need to be set for an enclave than the maximum supported number of memory regions per enclave. One example can be when the memory regions are backed by 2 MiB hugepages (the minimum supported hugepage size). Let's merge the adjacent regions if they are physically contiguous. This way the final number of memory regions is less than before merging and could potentially avoid reaching maximum. Reviewed-by: Andra Paraschiv <andraprs@amazon.com> Signed-off-by: Longpeng <longpeng2@huawei.com> Link: https://lore.kernel.org/r/20211107140918.2106-2-longpeng2@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions