qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] hw/arm/virt: Replace memory_region_init_ram wit


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] hw/arm/virt: Replace memory_region_init_ram with memory_region_allocate_system_memory
Date: Tue, 14 Oct 2014 14:48:34 +0200

On 14 October 2014 14:39, Paolo Bonzini <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]