Skip to contentSkip to conversation

bug? hvm builder memory allocation ...

DISCUSSION Gerd Hoffmann 2 participants 3 messages Nov 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

hvm memory allocation looks buggy in unstable: First it allocates memory using two xc_domain_memory_populate_physmap() calls, explicitly excluding the vga hole, then the (not allocated) vga hole is released via xc_domain_memory_decrease_reservation() ...

cheers,
Gerd

Signature · 2 lines
Gerd Hoffmann <[email protected]>
http://www.suse.de/~kraxel/julika-dora.jpeg
#1 lore raw

Well clearly it works. I'm not sure why though. :-) The decrease_reservation() request ought to fail and hence fail the HVM guest creation. I'll look into it.

-- Keir

Quoted 9 lines · Gerd Hoffmann

Hi,

hvm memory allocation looks buggy in unstable: First it allocates memory using two xc_domain_memory_populate_physmap() calls, explicitly excluding the vga hole, then the (not allocated) vga hole is released via xc_domain_memory_decrease_reservation() ...

cheers,
Gerd

#2 lore raw

Error handling in xc_domain_{increase,decrease}_reservation() was broken. With that fixed the HVM builder was indeed broken, so I removed the unnecessary decrease_reservation() call. This is all fixed in c/s 12273:5a41ea282c.

Thanks,
Keir

Quoted 24 lines · Keir Fraser

Well clearly it works. I'm not sure why though. :-) The decrease_reservation() request ought to fail and hence fail the HVM guest creation. I'll look into it.

-- Keir

Quoted 9 lines · Gerd Hoffmann

Hi,

hvm memory allocation looks buggy in unstable: First it allocates memory using two xc_domain_memory_populate_physmap() calls, explicitly excluding the vga hole, then the (not allocated) vga hole is released via xc_domain_memory_decrease_reservation() ...

cheers,
Gerd

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel