On 14 October 2014 14:39, Paolo Bonzini <pbonz...@redhat.com> wrote: > Il 14/10/2014 07:42, Peter Maydell ha scritto: >> That's only in the NUMA code path though, isn't it? >> I was looking at the non-numa codepath, which is what >> all the boards I care about are going to be taking :-) > > The non-NUMA path will allocate memory from two separate files. > -mem-path takes a path, not a file.
Thanks. I hadn't followed the code all the way down... >> What's the right thing for a board where the system >> RAM isn't contiguous, by the way? > > x86 allocates a big RAM region and uses aliases to split it into > non-contiguous areas. Why don't we just do that automatically for all RAM regions the machine creates? We're already splitting up a contiguous chunk of RAM to parcel out to RAM regions, that's what the indirection through ramaddrs is all about. -- PMM