From: David Gibson <david@gibson.dropbear.id.au>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: lvivier@redhat.com, thuth@redhat.com, mdroth@linux.vnet.ibm.com,
qemu-devel@nongnu.org, agraf@suse.de, qemu-ppc@nongnu.org,
bharata@linux.vnet.ibm.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 2/4] spapr: Remove obsolete ram_limit field from sPAPRMachineState
Date: Tue, 26 May 2015 11:23:12 +1000 [thread overview]
Message-ID: <20150526012312.GM6255@voom.redhat.com> (raw)
In-Reply-To: <554AE64A.5050901@ozlabs.ru>
[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]
On Thu, May 07, 2015 at 02:12:58PM +1000, Alexey Kardashevskiy wrote:
> On 05/07/2015 01:57 PM, David Gibson wrote:
> >The ram_limit field was imported from sPAPREnvironment where it predates
> >the machine's ram size being available generically from machine->ram_size.
> >
> >Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> >---
> > hw/ppc/spapr.c | 3 +--
> > hw/ppc/spapr_hcall.c | 3 ++-
> > include/hw/ppc/spapr.h | 1 -
> > 3 files changed, 3 insertions(+), 4 deletions(-)
> >
> >diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> >index 601c41b..1123358 100644
> >--- a/hw/ppc/spapr.c
> >+++ b/hw/ppc/spapr.c
> >@@ -1496,9 +1496,8 @@ static void ppc_spapr_init(MachineState *machine)
> > }
> >
> > /* allocate RAM */
> >- sm->ram_limit = ram_size;
>
>
>
> I had to look at the code to realize that ram_size is local and it can
> actually be removed.
Actually.. it's worse than that. There's both a global and this local
which was masking it. Luckily the local had the same value, but it's
still nasty.
Respin will clean this up better.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-05-26 1:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 3:57 [Qemu-devel] [PATCH 0/4] sPAPRMachineState cleanups David Gibson
2015-05-07 3:57 ` [Qemu-devel] [PATCH 1/4] spapr: Merge sPAPREnvironment into sPAPRMachineState David Gibson
2015-05-07 8:13 ` Thomas Huth
2015-05-26 1:14 ` David Gibson
2015-05-07 3:57 ` [Qemu-devel] [PATCH 2/4] spapr: Remove obsolete ram_limit field from sPAPRMachineState David Gibson
2015-05-07 4:12 ` Alexey Kardashevskiy
2015-05-07 4:40 ` David Gibson
2015-05-26 1:23 ` David Gibson [this message]
2015-05-07 3:57 ` [Qemu-devel] [PATCH 3/4] spapr: Remove obsolete entry_point " David Gibson
2015-05-07 4:50 ` Bharata B Rao
2015-05-26 1:39 ` David Gibson
2015-05-07 3:57 ` [Qemu-devel] [PATCH 4/4] spapr: Add sPAPRMachineClass David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150526012312.GM6255@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=bharata@linux.vnet.ibm.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.