* [Qemu-devel] memory restriction in 256M - why?
@ 2009-08-25 7:57 Sergey Anosov
2009-08-26 9:29 ` Artyom Tarasenko
0 siblings, 1 reply; 4+ messages in thread
From: Sergey Anosov @ 2009-08-25 7:57 UTC (permalink / raw)
To: qemu-devel
Hi all!
I'm new in QEMU. I've got one question - why there is a memory restriction in 256 M on sparc, mips and other platforms?
I've made mips and sparc distributives, but 256M of RAM is too little for them.
I have seen patch for versatile platform, that expands amount of physicall memory.
Is there such patches for mips and sparc?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] memory restriction in 256M - why?
2009-08-25 7:57 [Qemu-devel] memory restriction in 256M - why? Sergey Anosov
@ 2009-08-26 9:29 ` Artyom Tarasenko
2009-08-26 12:58 ` Stefan Weil
2009-08-26 16:53 ` Blue Swirl
0 siblings, 2 replies; 4+ messages in thread
From: Artyom Tarasenko @ 2009-08-26 9:29 UTC (permalink / raw)
To: Sergey Anosov; +Cc: qemu-devel
2009/8/25 Sergey Anosov <aserg2004@list.ru>:
> I'm new in QEMU. I've got one question - why there is a memory restriction in 256 M on sparc, mips and other platforms?
> I've made mips and sparc distributives, but 256M of RAM is too little for them.
There is no such restriction:
qemu-system-sparc -M SS-10 -m 512
...
Probing Memory Bank #0 64 Megabytes of DRAM
Probing Memory Bank #1 64 Megabytes of DRAM
Probing Memory Bank #2 64 Megabytes of DRAM
Probing Memory Bank #3 64 Megabytes of DRAM
Probing Memory Bank #4 64 Megabytes of DRAM
Probing Memory Bank #5 64 Megabytes of DRAM
Probing Memory Bank #6 64 Megabytes of DRAM
Probing Memory Bank #7 64 Megabytes of DRAM
...
But there is a limitation per certain machine type. SparcStation 10
can support only 512 M. It rarely makes sense to try to put more in
it: a standard software (Firmware, OS) wouldn't know where to search
for more RAM.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] memory restriction in 256M - why?
2009-08-26 9:29 ` Artyom Tarasenko
@ 2009-08-26 12:58 ` Stefan Weil
2009-08-26 16:53 ` Blue Swirl
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Weil @ 2009-08-26 12:58 UTC (permalink / raw)
To: Sergey Anosov; +Cc: qemu-devel
Artyom Tarasenko schrieb:
> 2009/8/25 Sergey Anosov <aserg2004@list.ru>:
>
>> I'm new in QEMU. I've got one question - why there is a memory restriction in 256 M on sparc, mips and other platforms?
>> I've made mips and sparc distributives, but 256M of RAM is too little for them.
>>
>
> There is no such restriction:
>
> qemu-system-sparc -M SS-10 -m 512
> ...
> Probing Memory Bank #0 64 Megabytes of DRAM
> Probing Memory Bank #1 64 Megabytes of DRAM
> Probing Memory Bank #2 64 Megabytes of DRAM
> Probing Memory Bank #3 64 Megabytes of DRAM
> Probing Memory Bank #4 64 Megabytes of DRAM
> Probing Memory Bank #5 64 Megabytes of DRAM
> Probing Memory Bank #6 64 Megabytes of DRAM
> Probing Memory Bank #7 64 Megabytes of DRAM
> ...
>
> But there is a limitation per certain machine type. SparcStation 10
> can support only 512 M. It rarely makes sense to try to put more in
> it: a standard software (Firmware, OS) wouldn't know where to search
> for more RAM.
>
>
>
>
MIPS Malta is limited to 256 MiB. This is a hardware limitation
and not caused by QEMU.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] memory restriction in 256M - why?
2009-08-26 9:29 ` Artyom Tarasenko
2009-08-26 12:58 ` Stefan Weil
@ 2009-08-26 16:53 ` Blue Swirl
1 sibling, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2009-08-26 16:53 UTC (permalink / raw)
To: Artyom Tarasenko; +Cc: Sergey Anosov, qemu-devel
On Wed, Aug 26, 2009 at 12:29 PM, Artyom
Tarasenko<atar4qemu@googlemail.com> wrote:
> 2009/8/25 Sergey Anosov <aserg2004@list.ru>:
>> I'm new in QEMU. I've got one question - why there is a memory restriction in 256 M on sparc, mips and other platforms?
>> I've made mips and sparc distributives, but 256M of RAM is too little for them.
>
> There is no such restriction:
>
> qemu-system-sparc -M SS-10 -m 512
> ...
> Probing Memory Bank #0 64 Megabytes of DRAM
> Probing Memory Bank #1 64 Megabytes of DRAM
> Probing Memory Bank #2 64 Megabytes of DRAM
> Probing Memory Bank #3 64 Megabytes of DRAM
> Probing Memory Bank #4 64 Megabytes of DRAM
> Probing Memory Bank #5 64 Megabytes of DRAM
> Probing Memory Bank #6 64 Megabytes of DRAM
> Probing Memory Bank #7 64 Megabytes of DRAM
> ...
>
> But there is a limitation per certain machine type. SparcStation 10
> can support only 512 M. It rarely makes sense to try to put more in
> it: a standard software (Firmware, OS) wouldn't know where to search
> for more RAM.
No, we limit the memory on SS-10/20/600MP to 60G, because we can make
contiguous RAM available up to that. We could support even more memory
if the additional RAM was added to ranges outside of MMIO, but then
the memory would no longer be contiguous and this would need support
from OpenBIOS.
It's true that the original SS-10 hardware (and original OpenBoot
roms) only supported 512M, so another approach would be to use the
historical limit.
Which approach is more correct depends on what you aim. QEMU is by
design not a cycle accurate emulator, so IMHO we have generally more
flexibility.
On Sparc32/64 and PPC, OpenFirmware also provides a level of
indirection that hides some details of the machine, so QEMU+OpenBIOS
can make shortcuts. For example, instead of probing the memory,
OpenBIOS reads the memory size directly from QEMU specific firmware
configuration device.
Linux will happily use all memory that the OpenFirmware interfaces
allow so the emulated machine usually runs faster.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-26 16:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 7:57 [Qemu-devel] memory restriction in 256M - why? Sergey Anosov
2009-08-26 9:29 ` Artyom Tarasenko
2009-08-26 12:58 ` Stefan Weil
2009-08-26 16:53 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).