Revert "FROMLIST: KVM: arm64: pkvm: Fix hyp_pool max order"

This reverts commit 1fc8561b6d.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: Ic07647ee6999bd84c6ee21117aea090f0adaf896
This commit is contained in:
Will Deacon
2022-07-07 15:52:04 +01:00
parent b076e3261e
commit d17cf0e636

View File

@@ -241,7 +241,7 @@ int hyp_pool_init(struct hyp_pool *pool, u64 pfn, unsigned int nr_pages,
int i;
hyp_spin_lock_init(&pool->lock);
pool->max_order = min(MAX_ORDER, get_order((nr_pages + 1) << PAGE_SHIFT));
pool->max_order = min(MAX_ORDER, get_order(nr_pages << PAGE_SHIFT));
for (i = 0; i < pool->max_order; i++)
INIT_LIST_HEAD(&pool->free_area[i]);
pool->range_start = phys;