Skip to contentSkip to conversation

Dom0 initial memory map guarantees

DISCUSSION Jan Beulich 2 participants 2 messages Mar 30, 2009

lore
Share & tools
lore
#0 lore raw

While for DomU's the initial memory map clearly cannot be expected to be contiguous in MFN space, currently it happens to be that way for (x86) Dom0 (and even the !NDEBUG case only intentionally breaks this for the space beyond v_end).

Without a formal guarantee it would seem fragile, however, to rely on this. Thus the question is whether it's reasonable to document such a behavior, or whether instead any such assumption should be forcefully broken by the Dom0 builder.

Thanks, Jan

#1 lore raw
Quoted 9 lines · Jan Beulich

While for DomU's the initial memory map clearly cannot be expected to be contiguous in MFN space, currently it happens to be that way for (x86) Dom0 (and even the !NDEBUG case only intentionally breaks this for the space beyond v_end).

Without a formal guarantee it would seem fragile, however, to rely on this. Thus the question is whether it's reasonable to document such a behavior, or whether instead any such assumption should be forcefully broken by the Dom0 builder.

You can feel free to forcefully break it in debug builds of Xen. We already do for most of dom0's allocation, but we don't bother for the initial memory map. That's just laziness however -- contiguity is not guaranteed.

-- Keir