mirrored from git://xenbits.xen.org/xen.git
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm/domain_build: Make find_unallocated_memory() more generic
At the moment, find_unallocated_memory() is only used to retrieve free memory ranges for direct mapped domains in order to find extended regions. It is not generic as it makes assumptions as for the place at which it's being called (domain memory already allocated, gnttab region already found) and hardcodes the memory banks to be excluded. Make the function more generic, so that it can be used for other purposes whenever there is a need to find free host memory regions (e.g. upcoming LLC coloring series). Allow passing array with memory banks as a parameter together with a callback to populate free regions structure, as the logic may differ depending on the needs. Add find_host_extended_regions() to be called from make_hypervisor_node() to contain the logic to find extended regions for domains using host memory layout that are not permitted to use IOMMU. Signed-off-by: Michal Orzel <[email protected]> Reviewed-by: Luca Fancellu <[email protected]> Tested-by: Luca Fancellu <[email protected]> Acked-by: Julien Grall <[email protected]>
- Loading branch information
1 parent
a974366
commit 89dca88
Showing
1 changed file
with
54 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters