From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWSV4-0008N3-33 for qemu-devel@nongnu.org; Tue, 14 Jun 2011 08:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWSV2-0008IR-19 for qemu-devel@nongnu.org; Tue, 14 Jun 2011 08:13:41 -0400 Received: from mail-ew0-f45.google.com ([209.85.215.45]:40498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWSV1-0008IF-HM for qemu-devel@nongnu.org; Tue, 14 Jun 2011 08:13:39 -0400 Received: by ewy24 with SMTP id 24so2321411ewy.4 for ; Tue, 14 Jun 2011 05:13:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 14 Jun 2011 17:43:38 +0530 Message-ID: From: =?UTF-8?B?4KSu4KSo4KWA4KS3IOCktuCksOCljeCkruCkviA=?= Content-Type: multipart/alternative; boundary=00163642695548e8cf04a5aaf76e Subject: [Qemu-devel] Fwd: How to increase ram beyond 756 MB ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --00163642695548e8cf04a5aaf76e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable ---------- Forwarded message ---------- From: =E0=A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A4=B0=E0=A5=8D=E0= =A4=AE=E0=A4=BE Date: 2011/6/14 Subject: Re: [Qemu-devel] How to increase ram beyond 756 MB ? To: Peter Maydell Thanks Peter. I am able to change memory size in guest to 1024 MB now. After making small change in my kernel file realview_pbx.c. To changed the address to 0x70000000 instead of 0x80000000 where qemu 0.14.0 is registering the memory. realview_pbx_fixup () { .... *-meminfo->bank[2].start =3D 0x80000000 * + meminfo->bank[2].start =3D 0x70000000 ... } And to enable *High Memory support* in my kernel. Now its showing 1024 MB. Thanks a lot for such a quick reply. regards, Manish 2011/6/14 Peter Maydell > 2011/6/14 =E0=A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A4=B0=E0=A5= =8D=E0=A4=AE=E0=A4=BE : > > I am using arm on x86, running Linux 2.6.33 as guest and fedora 14 as > host. > > And using Realview board inside Qemu Machine. > > Do you mean "realview-eb", "realview-eb-mpcore", "realview-pb-a9", > or "realview-pbx-a9" ? They are different models. > > > Even though I passed 1024 MB as qemu memory in command line, > > I can only see ~756MB given to guest. Also I tried passing more than > > 1024 MB say 2048 MB But I am unable to see increase in RAM in Guest OS. > > I checked the /proc/meminfo for guest OS memory details. > > For both "realview-eb" and "realview-eb-mpcore" the maximum memory > allowed is 256MB, because the hardware we are modelled has an > address space layout which does not permit more. If you're using > those models, then to use more RAM you must use a different model. > > "realview-pb-a9" and "realview-pbx-a9" should both in theory > support 1024MB of RAM as a maximum. Typically to make this work > you need to both pass QEMU the "-m 1024" option (to model the > extra RAM) and also pass the guest kernel an option like "mem=3D1024M". > (However the pb-a9 hardware has 512MB of RAM as a maximum and > we are providing extra modelled RAM in a "reserved" section of > the address space, so it's possible the guest kernel wouldn't > try to use it.) > > -- PMM > --=20 -=E0=A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7 --=20 -=E0=A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7 --00163642695548e8cf04a5aaf76e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=C2=A0
---------= - Forwarded message ----------
From: =E0= =A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A4=B0=E0=A5=8D=E0=A4=AE=E0= =A4=BE <manishs.in@gmail.com>
Date: 2011/6/14
Subject: Re: [Qemu-devel] How to increase ram beyond 756= MB ?
To: Peter Maydell <= peter.maydell@linaro.org>


Thanks Peter.
=C2=A0
I am able to change memory size in guest=C2=A0 to 1024 MB = now.
After=C2=A0making small change in my kernel=C2=A0file realvi= ew_pbx.c.
To changed the address to = 0x70000000 instead of 0x80000000
where qemu 0.14.0 is registering the memory.= =C2=A0
realview_pbx_fixup () {
....
<= div>-meminfo->bank[2].start =3D 0x80000000= =C2=A0=C2=A0
+ meminfo->bank[2].start =3D 0x70000000
...
}<= /div>
=C2=A0
And to enable High Memory support in my kernel.
<= /div>
Now its showing 1024 MB.
=C2=A0
Thanks= a lot for such a quick reply.
=C2=A0
regards,
Manish
2011/6/14 Peter Maydell <peter.maydell@linaro.org>
2011/6/14 =E0=A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A4=B0=E0=A5=8D= =E0=A4=AE=E0=A4=BE <mani= shs.in@gmail.com>= :
> I am using arm on x86, running Linux 2.6.33 as guest and fedora 1= 4 as host.
> And using Realview board inside Qemu Machine.

Do you mean "realview-eb", "realview-eb-mpcore", = "realview-pb-a9",
or "realview-pbx-a9" ? They are different models.

> Even though I passed 1024 MB as qemu memory in command line,
> I can only see ~756MB given to guest. Also I tried passing more than > 1024 MB say 2048 MB But I am unable to see increase in RAM in Guest OS= .
> I checked the /proc/meminfo for guest OS memory details.

For both "realview-eb" and "realview-eb-mpcore" t= he maximum memory
allowed is 256MB, because the hardware we are modelled has an
address space layout which does not permit more. If you're using
those models, then to use more RAM you must use a different model.

"realview-pb-a9" and "realview-pbx-a9" should both in t= heory
support 1024MB of RAM as a maximum. Typically to make this work
you need to both pass QEMU the "-m 1024" option (to model the
extra RAM) and also pass the guest kernel an option like "mem=3D1024M&= quot;.
(However the pb-a9 hardware has 512MB of RAM as a maximum and
we are providing extra modelled RAM in a "reserved" section of the address space, so it's possible the guest kernel wouldn't
try to use it.)

-- PMM



--
-=E0=A4=AE=E0=A4=A8=E0=A5=80=E0=A4=B7



--
-=E0=A4=AE=E0=A4=A8=E0=A5=80= =E0=A4=B7
--00163642695548e8cf04a5aaf76e--