Commit 1667b0b3 authored by Mostafa Saleh's avatar Mostafa Saleh
Browse files

ANDROID: KVM: arm64: Allow hyp_pool to be initialized without pages



Currently, hyp_pool_init requires pfn to initialize the free lists,
with the nr_pages, this doesn't fit in the IOMMU model, where we
want to init the hyp pool without pages yet, and the pool will be toped
in runtime when pages are reclaimed then re-used for next allocations.
A new bool arg(empty_alloc) is added to allow this behavior.

Bug: 277989609
Bug: 278749606
Change-Id: If5710a740f5078e6511631a0cd19c2ed39605f18
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent 3df6f583
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment