[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in Q
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct |
Date: |
Wed, 30 Mar 2011 09:09:46 +0100 |
On 30 March 2011 08:48, Jes Sorensen <address@hidden> wrote:
> On 03/29/11 16:08, Peter Maydell wrote:
>> This primary aim of this patchset is to add a new 'max_ram' field to the
>> QEMUMachine structure so that a board model can specify the maximum RAM it
>> will accept.
> I am a little concerned about this approach. It should work for simple
> embedded boards, but for larger systems, it really ought to be a mask
> rather than a max address.
It's not a maximum address, it's a maximum size. For instance
the RAM isn't contiguous on some of the ARM devboards.
> Ideally I think it would be better to have a mask and then introduce a
> is_valid_memory() kinda function to check it with.
The command line option doesn't provide any means of saying
"put 64MB in this hole and another 128 over here and 32 there",
so this seems completely pointless to me. All we are trying
to do is validate what the user has asked for, so why have
a validation mechanism that can cope with impossible-to-request
arrangements?
> I fear that by introducing a simple max limit like this, we are going to
> hit problems later when we try to improve the NUMA support.
I think this is letting the best be the enemy of the good.
Even if you do want to have NUMA systems do more complex
things I think you should still have the simple "maximum
size" approach for the bulk of the supported boards which
don't need anything more complicated. So additional NUMA
features would augment, not replace this.
-- PMM
- [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 2/7] hw: Add maximum RAM specifications for ARM devboard models, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 1/7] Allow boards to specify maximum RAM size, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 3/7] vl.c: Fix machine registration so QEMUMachine structs can be const, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 5/7] hw/sun4m: Use the QEMUMachine max_ram to implement memory limit, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 7/7] hw: Make QEMUMachine structure definitions const, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 4/7] hw/sun4m: Move QEMUMachine structs into sun4*_hwdef structs, Peter Maydell, 2011/03/29
- [Qemu-devel] [PATCH v3 6/7] hw/sun4m: Use a macro to hide the repetitive board init functions, Peter Maydell, 2011/03/29
- Re: [Qemu-devel] [PATCH v3 0/7] Let boards state maximum RAM limits in QEMUMachine struct, Jes Sorensen, 2011/03/30