construct_dom0: Initialize variable before use
A message that is not in the archive (sent off-list or not yet received): C37DAC27.197BA%[email protected]
Great, thanks! I just can't test the removal of the 166GB RAM limit :-)
Christoph
Quoted 25 lines · On Thursday 06 December 2007 14:39:51 Keir Fraser wrote:
Changeset 16548.
-- Keir
Quoted 20 lines · Christoph Egger
Hi!
Attached patch initializes
d->arch.physaddr_bitsizeproperly for a 64bit Dom0/64bit hypervisor.
This bug has been found when booting a NetBSD/Xen Dom0 with more than 4GB RAM.Without this fix,
d->arch.physaddr_bitsizeis 0 indomain_clamp_alloc_bitsize(). This causes all attempts toXENMEM_increase_reservationwith bits > 0 to fail. More precisely,__alloc_domheap_pages()returns NULL.
This impacts Xen heap allocation in general.
Question: How did that work on Linux Dom0?I think, initializing
physaddr_bitsizeto 64 unconditionally is ok because inconstruct_dom0()it is overridden with the proper value when you boot 64bit hypervisor with a 32bit Dom0. If the hypervisor is not 64bit,physaddr_bitsizeisn't used at all anyway.Signed-off-by Christoph Egger <[email protected]>
Signature · 12 lines
AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy