Skip to contentSkip to conversation

Why reserve maxmem on restore on ia64?

DISCUSSION Miroslav Rezanina 2 participants 2 messages Oct 14, 2010

lore
Share & tools
lore
#0 lore raw

Hi,
while checking the code I found out that when we restore guest on ia64 machine, we reserve up to maxmem pages and than free unused pages. As I'm not familiar with ia64 platform, I'd like to ask what's the reason for such a behavior? This prevent restoring guest on machine where is not enough memory available to alocate maxmem but there's enough memory for alocating memory.

Thanks for answer,
Mirek

Signature · 2 lines
Miroslav Rezanina
Software Engineer - Virtualization Team - XEN kernel
#1 lore raw

Because noone has bothered to merge with the x86 restore code, or otherwise implement the more sensible allocation strategy.

-- Keir

Quoted 9 lines · Miroslav Rezanina

Hi,
while checking the code I found out that when we restore guest on ia64 machine, we reserve up to maxmem pages and than free unused pages. As I'm not familiar with ia64 platform, I'd like to ask what's the reason for such a behavior? This prevent restoring guest on machine where is not enough memory available to alocate maxmem but there's enough memory for alocating memory.

Thanks for answer,
Mirek