Skip to contentSkip to conversation

Return unused memory to hypervisor

PATCH Miroslav Rezanina 1 participant 1 message Sep 18, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 625566043.266451253249879910.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com

#1 lore raw
Quoted 9 lines · ----- "Jeremy Fitzhardinge

From: "Jeremy Fitzhardinge" <[email protected]>
To: "Miroslav Rezanina" <[email protected]>
Cc: [email protected], [email protected], "Konrad Rzeszutek Wilk" <[email protected]>
Sent: Thursday, September 17, 2009 6:47:10 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: [Xen-devel] Re: [PATCH][v2.6.29][XEN] Return unused memory to hypervisor

Quoted 2 lines · Miroslav Rezanina

Hi Jeremy,
I check your application. It won't work correctly. You are calling

Quoted 8 lines

return_unused_memory in xen_memory_setup that is too soon.

Quoted 1 line

When you are calling it, there is no hole in map in any case.

Calling should be in xen_post_allocator_init function (in arch/x86/xen/mmu.c).

Quoted 1 line

OK. Where does the e820 map get changed in the meantime?

xen_memory_setup just set RAM map from 0 to initial nr_pages. Only one place I'm sure map is changed is parsing mem parameter. You mentioned that there can be other cases when some parts of map are removed.

Quoted 6 lines

J

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

Signature · 2 lines
Miroslav Rezanina
Software Engineer - Virtualization Team - XEN kernel