Page MenuHomePhabricator

Be cleverer about how we pack VMs together
Open, Needs TriagePublic

Description

From ascull@'s comment on https://hafnium-review.googlesource.com/c/hafnium/+/1980/5/src/load.c: "in future we might want to be cleverer about this and pack VMs together with a non-greedy algorithm."

ascull@ said: For context, on a system that has different memory regions we want to load the partition into those regions efficiently to maximize the contiguous physical memory can we provide to the primary partition (since we do 1:1 mapping) and to ensure we don't run out of space due to fragmentation across the memory regions.

ascull@ said: Note, the plan is to be "clever" by statically defining the memory layout in the manifest.

dbrazdil@ said: This is still needed for Hafnium SPM. Nothing has been done beyond some quick&dirty experiments. It will probably be driven by properly implementing SPCI partition manifest properties.

(Migrated from b/116191358.)

Event Timeline

qwandor created this task.Apr 27 2020, 6:12 PM