Skip to content

Commit 0d56c32

Browse files
authored
nitro_enclaves: Temporarily remove NUMA node check for memory (#102)
Remove the check for NUMA node aware memory regions till the configuration for hugetlbfs in user space is NUMA aware. Signed-off-by: Andra Paraschiv <[email protected]>
1 parent a9f9eaa commit 0d56c32

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/virt/nitro_enclaves/ne_misc_dev.c

-11
Original file line numberDiff line numberDiff line change
@@ -785,17 +785,6 @@ static int ne_set_user_memory_region_ioctl(struct ne_enclave *ne_enclave,
785785
}
786786
#endif
787787

788-
if (ne_enclave->numa_node !=
789-
page_to_nid(ne_mem_region->pages[i])) {
790-
dev_err_ratelimited(ne_misc_dev.this_device,
791-
"Page isn't from NUMA node %d\n",
792-
ne_enclave->numa_node);
793-
794-
rc = -EINVAL;
795-
796-
goto unpin_pages;
797-
}
798-
799788
/*
800789
* TODO: Update once handled non-contiguous memory regions
801790
* received from user space.

0 commit comments

Comments
 (0)