-
With CONFIG_XENO_OPT_PRIVATE_HEAPSZ, user can request any heap size based on their needs. For some application needs, this can grow as large as 4MB that is, 2^10 order pages, which is unlikely to succeed with kzalloc. Even the default (256KB) may fail on highly fragmented system. Moreover, for this heap allocation, we don't need physical contiguous memory. Thus vmalloc/vzalloc may be sufficient here. Note, we may also use kvzalloc/kvmalloc, but unfortunately these are not available in all kernel versions. Thus for backward compatibility we stick to vmalloc at least till we support 4.x kernel. Signed-off-by: Pintu Kumar <pintu@codeaurora.org> Signed-off-by: sunshilong <sunshilong369@gmail.com> Tested-by: sunshilong <sunshilong369@gmail.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
c984901a